﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="DataSetFSO" targetNamespace="http://tempuri.org/DataSet1.xsd" xmlns:mstns="http://tempuri.org/DataSet1.xsd" xmlns="http://tempuri.org/DataSet1.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="1" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="FSO2ConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="FSO2ConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.Zvezda.FSO2.DB.Properties.Settings.GlobalReference.Default.FSO2ConnectionString" Provider="System.Data.SqlClient" />
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="FSO2ConnectionString1" IsAppSettingsProperty="true" Modifier="Assembly" Name="FSO2ConnectionString1 (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.Zvezda.FSO2.DB.Properties.Settings.GlobalReference.Default.FSO2ConnectionString1" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="CALENDAR_PLANTableAdapter" GeneratorDataComponentClassName="CALENDAR_PLANTableAdapter" Name="CALENDAR_PLAN" UserDataComponentName="CALENDAR_PLANTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.CALENDAR_PLAN" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [CALENDAR_PLAN] WHERE (([ID] = @Original_ID) AND ((@IsNull_NUMBER = 1 AND [NUMBER] IS NULL) OR ([NUMBER] = @Original_NUMBER)) AND ((@IsNull_START_DATE = 1 AND [START_DATE] IS NULL) OR ([START_DATE] = @Original_START_DATE)) AND ((@IsNull_END_DATE = 1 AND [END_DATE] IS NULL) OR ([END_DATE] = @Original_END_DATE)) AND ((@IsNull_CONTRACT_ID = 1 AND [CONTRACT_ID] IS NULL) OR ([CONTRACT_ID] = @Original_CONTRACT_ID)) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)) AND ((@IsNull_PID = 1 AND [PID] IS NULL) OR ([PID] = @Original_PID)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NUMBER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_NUMBER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_START_DATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="START_DATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_START_DATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="START_DATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_END_DATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="END_DATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_END_DATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="END_DATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CONTRACT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CONTRACT_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_CONTRACT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CONTRACT_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [CALENDAR_PLAN] ([NUMBER], [START_DATE], [END_DATE], [CONTRACT_ID], [LAST_UPDATE], [LAST_UPDATE_USER], [PID]) VALUES (@NUMBER, @START_DATE, @END_DATE, @CONTRACT_ID, @LAST_UPDATE, @LAST_UPDATE_USER, @PID);
SELECT ID, NUMBER, START_DATE, END_DATE, CONTRACT_ID, LAST_UPDATE, LAST_UPDATE_USER, PID FROM CALENDAR_PLAN WHERE (ID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@NUMBER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@START_DATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="START_DATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@END_DATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="END_DATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@CONTRACT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CONTRACT_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT     ID, NUMBER, START_DATE, END_DATE, CONTRACT_ID, LAST_UPDATE, LAST_UPDATE_USER, PID
FROM         CALENDAR_PLAN</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [CALENDAR_PLAN] SET [NUMBER] = @NUMBER, [START_DATE] = @START_DATE, [END_DATE] = @END_DATE, [CONTRACT_ID] = @CONTRACT_ID, [LAST_UPDATE] = @LAST_UPDATE, [LAST_UPDATE_USER] = @LAST_UPDATE_USER, [PID] = @PID WHERE (([ID] = @Original_ID) AND ((@IsNull_NUMBER = 1 AND [NUMBER] IS NULL) OR ([NUMBER] = @Original_NUMBER)) AND ((@IsNull_START_DATE = 1 AND [START_DATE] IS NULL) OR ([START_DATE] = @Original_START_DATE)) AND ((@IsNull_END_DATE = 1 AND [END_DATE] IS NULL) OR ([END_DATE] = @Original_END_DATE)) AND ((@IsNull_CONTRACT_ID = 1 AND [CONTRACT_ID] IS NULL) OR ([CONTRACT_ID] = @Original_CONTRACT_ID)) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)) AND ((@IsNull_PID = 1 AND [PID] IS NULL) OR ([PID] = @Original_PID)));
SELECT ID, NUMBER, START_DATE, END_DATE, CONTRACT_ID, LAST_UPDATE, LAST_UPDATE_USER, PID FROM CALENDAR_PLAN WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@NUMBER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@START_DATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="START_DATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@END_DATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="END_DATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@CONTRACT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CONTRACT_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NUMBER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_NUMBER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_START_DATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="START_DATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_START_DATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="START_DATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_END_DATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="END_DATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_END_DATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="END_DATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CONTRACT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CONTRACT_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_CONTRACT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CONTRACT_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="FSO2.dbo.CALENDAR_PLAN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="NUMBER" DataSetColumn="NUMBER" />
              <Mapping SourceColumn="START_DATE" DataSetColumn="START_DATE" />
              <Mapping SourceColumn="END_DATE" DataSetColumn="END_DATE" />
              <Mapping SourceColumn="CONTRACT_ID" DataSetColumn="CONTRACT_ID" />
              <Mapping SourceColumn="LAST_UPDATE" DataSetColumn="LAST_UPDATE" />
              <Mapping SourceColumn="LAST_UPDATE_USER" DataSetColumn="LAST_UPDATE_USER" />
              <Mapping SourceColumn="PID" DataSetColumn="PID" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.CALENDAR_PLAN" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByContractId" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByContractId" GeneratorSourceName="FillByContractId" GetMethodModifier="Public" GetMethodName="GetDataByContractId" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByContractId" UserSourceName="FillByContractId">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT     ID, NUMBER, START_DATE, END_DATE, CONTRACT_ID, LAST_UPDATE, LAST_UPDATE_USER, PID
FROM         CALENDAR_PLAN
WHERE CONTRACT_ID = @ID</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="ID" ColumnName="CONTRACT_ID" DataSourceName="FSO2.dbo.CALENDAR_PLAN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="CONTRACT_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.CALENDAR_PLAN" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillById" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataById" GeneratorSourceName="FillById" GetMethodModifier="Public" GetMethodName="GetDataById" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataById" UserSourceName="FillById">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT     ID, NUMBER, START_DATE, END_DATE, CONTRACT_ID, LAST_UPDATE, LAST_UPDATE_USER, PID
FROM         CALENDAR_PLAN WHERE ID=@ID</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="FSO2.dbo.CALENDAR_PLAN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="CONTRACTTableAdapter" GeneratorDataComponentClassName="CONTRACTTableAdapter" Name="CONTRACT" UserDataComponentName="CONTRACTTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.CONTRACT" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [CONTRACT] WHERE (([ID] = @Original_ID) AND ((@IsNull_NUMBER = 1 AND [NUMBER] IS NULL) OR ([NUMBER] = @Original_NUMBER)) AND ((@IsNull_START_DATE = 1 AND [START_DATE] IS NULL) OR ([START_DATE] = @Original_START_DATE)) AND ((@IsNull_END_DATE = 1 AND [END_DATE] IS NULL) OR ([END_DATE] = @Original_END_DATE)) AND ((@IsNull_NSI_ORGANIZATION_ID = 1 AND [NSI_ORGANIZATION_ID] IS NULL) OR ([NSI_ORGANIZATION_ID] = @Original_NSI_ORGANIZATION_ID)) AND ((@IsNull_NSI_TYPE_OF_ACTIVITY_ID = 1 AND [NSI_TYPE_OF_ACTIVITY_ID] IS NULL) OR ([NSI_TYPE_OF_ACTIVITY_ID] = @Original_NSI_TYPE_OF_ACTIVITY_ID)) AND ((@IsNull_TYPE_WORK = 1 AND [TYPE_WORK] IS NULL) OR ([TYPE_WORK] = @Original_TYPE_WORK)) AND ((@IsNull_TYPE_DOC = 1 AND [TYPE_DOC] IS NULL) OR ([TYPE_DOC] = @Original_TYPE_DOC)) AND ((@IsNull_PARENT_CONTRACT_ID = 1 AND [PARENT_CONTRACT_ID] IS NULL) OR ([PARENT_CONTRACT_ID] = @Original_PARENT_CONTRACT_ID)) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)) AND ((@IsNull_PID = 1 AND [PID] IS NULL) OR ([PID] = @Original_PID)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NUMBER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_NUMBER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_START_DATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="START_DATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_START_DATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="START_DATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_END_DATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="END_DATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_END_DATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="END_DATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NSI_ORGANIZATION_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_ORGANIZATION_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_NSI_ORGANIZATION_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_ORGANIZATION_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NSI_TYPE_OF_ACTIVITY_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_TYPE_OF_ACTIVITY_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_NSI_TYPE_OF_ACTIVITY_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_TYPE_OF_ACTIVITY_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TYPE_WORK" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TYPE_WORK" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_TYPE_WORK" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TYPE_WORK" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TYPE_DOC" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TYPE_DOC" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_TYPE_DOC" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TYPE_DOC" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PARENT_CONTRACT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PARENT_CONTRACT_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PARENT_CONTRACT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PARENT_CONTRACT_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [CONTRACT] ([NUMBER], [START_DATE], [END_DATE], [NSI_ORGANIZATION_ID], [NSI_TYPE_OF_ACTIVITY_ID], [TYPE_WORK], [TYPE_DOC], [PARENT_CONTRACT_ID], [DESCRIPTION], [LAST_UPDATE], [LAST_UPDATE_USER], [PID]) VALUES (@NUMBER, @START_DATE, @END_DATE, @NSI_ORGANIZATION_ID, @NSI_TYPE_OF_ACTIVITY_ID, @TYPE_WORK, @TYPE_DOC, @PARENT_CONTRACT_ID, @DESCRIPTION, @LAST_UPDATE, @LAST_UPDATE_USER, @PID);
SELECT ID, NUMBER, START_DATE, END_DATE, NSI_ORGANIZATION_ID, NSI_TYPE_OF_ACTIVITY_ID, TYPE_WORK, TYPE_DOC, PARENT_CONTRACT_ID, DESCRIPTION, LAST_UPDATE, LAST_UPDATE_USER, PID FROM CONTRACT WHERE (ID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@NUMBER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@START_DATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="START_DATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@END_DATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="END_DATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@NSI_ORGANIZATION_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_ORGANIZATION_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@NSI_TYPE_OF_ACTIVITY_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_TYPE_OF_ACTIVITY_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@TYPE_WORK" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TYPE_WORK" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@TYPE_DOC" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TYPE_DOC" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PARENT_CONTRACT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PARENT_CONTRACT_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@DESCRIPTION" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DESCRIPTION" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT     ID, NUMBER, START_DATE, END_DATE, NSI_ORGANIZATION_ID, NSI_TYPE_OF_ACTIVITY_ID, TYPE_WORK, TYPE_DOC, PARENT_CONTRACT_ID, 
                      DESCRIPTION, LAST_UPDATE, LAST_UPDATE_USER, PID
FROM         CONTRACT</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [CONTRACT] SET [NUMBER] = @NUMBER, [START_DATE] = @START_DATE, [END_DATE] = @END_DATE, [NSI_ORGANIZATION_ID] = @NSI_ORGANIZATION_ID, [NSI_TYPE_OF_ACTIVITY_ID] = @NSI_TYPE_OF_ACTIVITY_ID, [TYPE_WORK] = @TYPE_WORK, [TYPE_DOC] = @TYPE_DOC, [PARENT_CONTRACT_ID] = @PARENT_CONTRACT_ID, [DESCRIPTION] = @DESCRIPTION, [LAST_UPDATE] = @LAST_UPDATE, [LAST_UPDATE_USER] = @LAST_UPDATE_USER, [PID] = @PID WHERE (([ID] = @Original_ID) AND ((@IsNull_NUMBER = 1 AND [NUMBER] IS NULL) OR ([NUMBER] = @Original_NUMBER)) AND ((@IsNull_START_DATE = 1 AND [START_DATE] IS NULL) OR ([START_DATE] = @Original_START_DATE)) AND ((@IsNull_END_DATE = 1 AND [END_DATE] IS NULL) OR ([END_DATE] = @Original_END_DATE)) AND ((@IsNull_NSI_ORGANIZATION_ID = 1 AND [NSI_ORGANIZATION_ID] IS NULL) OR ([NSI_ORGANIZATION_ID] = @Original_NSI_ORGANIZATION_ID)) AND ((@IsNull_NSI_TYPE_OF_ACTIVITY_ID = 1 AND [NSI_TYPE_OF_ACTIVITY_ID] IS NULL) OR ([NSI_TYPE_OF_ACTIVITY_ID] = @Original_NSI_TYPE_OF_ACTIVITY_ID)) AND ((@IsNull_TYPE_WORK = 1 AND [TYPE_WORK] IS NULL) OR ([TYPE_WORK] = @Original_TYPE_WORK)) AND ((@IsNull_TYPE_DOC = 1 AND [TYPE_DOC] IS NULL) OR ([TYPE_DOC] = @Original_TYPE_DOC)) AND ((@IsNull_PARENT_CONTRACT_ID = 1 AND [PARENT_CONTRACT_ID] IS NULL) OR ([PARENT_CONTRACT_ID] = @Original_PARENT_CONTRACT_ID)) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)) AND ((@IsNull_PID = 1 AND [PID] IS NULL) OR ([PID] = @Original_PID)));
SELECT ID, NUMBER, START_DATE, END_DATE, NSI_ORGANIZATION_ID, NSI_TYPE_OF_ACTIVITY_ID, TYPE_WORK, TYPE_DOC, PARENT_CONTRACT_ID, DESCRIPTION, LAST_UPDATE, LAST_UPDATE_USER, PID FROM CONTRACT WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@NUMBER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@START_DATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="START_DATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@END_DATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="END_DATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@NSI_ORGANIZATION_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_ORGANIZATION_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@NSI_TYPE_OF_ACTIVITY_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_TYPE_OF_ACTIVITY_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@TYPE_WORK" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TYPE_WORK" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@TYPE_DOC" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TYPE_DOC" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PARENT_CONTRACT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PARENT_CONTRACT_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@DESCRIPTION" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DESCRIPTION" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NUMBER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_NUMBER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_START_DATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="START_DATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_START_DATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="START_DATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_END_DATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="END_DATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_END_DATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="END_DATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NSI_ORGANIZATION_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_ORGANIZATION_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_NSI_ORGANIZATION_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_ORGANIZATION_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NSI_TYPE_OF_ACTIVITY_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_TYPE_OF_ACTIVITY_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_NSI_TYPE_OF_ACTIVITY_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_TYPE_OF_ACTIVITY_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TYPE_WORK" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TYPE_WORK" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_TYPE_WORK" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TYPE_WORK" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TYPE_DOC" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TYPE_DOC" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_TYPE_DOC" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TYPE_DOC" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PARENT_CONTRACT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PARENT_CONTRACT_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PARENT_CONTRACT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PARENT_CONTRACT_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="FSO2.dbo.CONTRACT" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="NUMBER" DataSetColumn="NUMBER" />
              <Mapping SourceColumn="START_DATE" DataSetColumn="START_DATE" />
              <Mapping SourceColumn="END_DATE" DataSetColumn="END_DATE" />
              <Mapping SourceColumn="NSI_ORGANIZATION_ID" DataSetColumn="NSI_ORGANIZATION_ID" />
              <Mapping SourceColumn="NSI_TYPE_OF_ACTIVITY_ID" DataSetColumn="NSI_TYPE_OF_ACTIVITY_ID" />
              <Mapping SourceColumn="TYPE_WORK" DataSetColumn="TYPE_WORK" />
              <Mapping SourceColumn="TYPE_DOC" DataSetColumn="TYPE_DOC" />
              <Mapping SourceColumn="PARENT_CONTRACT_ID" DataSetColumn="PARENT_CONTRACT_ID" />
              <Mapping SourceColumn="DESCRIPTION" DataSetColumn="DESCRIPTION" />
              <Mapping SourceColumn="LAST_UPDATE" DataSetColumn="LAST_UPDATE" />
              <Mapping SourceColumn="LAST_UPDATE_USER" DataSetColumn="LAST_UPDATE_USER" />
              <Mapping SourceColumn="PID" DataSetColumn="PID" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="Hierachy" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="FillAllChildByID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataAllChildByID" GeneratorSourceName="FillAllChildByID" GetMethodModifier="Public" GetMethodName="GetDataAllChildByID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataAllChildByID" UserSourceName="FillAllChildByID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>with Hierachy(ID, NUMBER, START_DATE, END_DATE, NSI_ORGANIZATION_ID, NSI_TYPE_OF_ACTIVITY_ID, TYPE_WORK, TYPE_DOC, PARENT_CONTRACT_ID, DESCRIPTION, LAST_UPDATE, LAST_UPDATE_USER, PID, Level) as
(
select ID, NUMBER, START_DATE, END_DATE, NSI_ORGANIZATION_ID, NSI_TYPE_OF_ACTIVITY_ID, TYPE_WORK, TYPE_DOC, PARENT_CONTRACT_ID, DESCRIPTION, LAST_UPDATE, LAST_UPDATE_USER, PID,  0 as Level
    from CONTRACT c
    where c.ID = @ID 
    UNION ALL
    select c.ID, c.NUMBER, c.START_DATE, c.END_DATE, c.NSI_ORGANIZATION_ID, c.NSI_TYPE_OF_ACTIVITY_ID, c.TYPE_WORK, c.TYPE_DOC, c.PARENT_CONTRACT_ID, c.DESCRIPTION, c.LAST_UPDATE, c.LAST_UPDATE_USER, c.PID, ch.Level + 1
    from CONTRACT c
    inner join Hierachy ch
    on c.PARENT_CONTRACT_ID = ch.ID
)
select ID, NUMBER, START_DATE, END_DATE, NSI_ORGANIZATION_ID, NSI_TYPE_OF_ACTIVITY_ID, TYPE_WORK, TYPE_DOC, PARENT_CONTRACT_ID, DESCRIPTION, LAST_UPDATE, LAST_UPDATE_USER, PID
from Hierachy
where Level &gt; 0</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="Hierachy" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.CONTRACT" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByID" GeneratorSourceName="FillByID" GetMethodModifier="Public" GetMethodName="GetDataByID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByID" UserSourceName="FillByID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT     DESCRIPTION, END_DATE, ID, LAST_UPDATE, LAST_UPDATE_USER, NSI_ORGANIZATION_ID, NSI_TYPE_OF_ACTIVITY_ID, NUMBER, 
                      PARENT_CONTRACT_ID, PID, START_DATE, TYPE_DOC, TYPE_WORK
FROM         CONTRACT
WHERE     (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="FSO2.dbo.CONTRACT" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.CONTRACT" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByOrganizationId" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByOrganizationId" GeneratorSourceName="FillByOrganizationId" GetMethodModifier="Public" GetMethodName="GetDataByOrganizationId" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByOrganizationId" UserSourceName="FillByOrganizationId">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT     DESCRIPTION, END_DATE, ID, LAST_UPDATE, LAST_UPDATE_USER, NSI_ORGANIZATION_ID, NSI_TYPE_OF_ACTIVITY_ID, NUMBER, 
                      PARENT_CONTRACT_ID, PID, START_DATE, TYPE_DOC, TYPE_WORK
FROM         CONTRACT
WHERE     (NSI_ORGANIZATION_ID = @OrgID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="OrgID" ColumnName="NSI_ORGANIZATION_ID" DataSourceName="FSO2.dbo.CONTRACT" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@OrgID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="NSI_ORGANIZATION_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.CONTRACT" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByPID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByPID" GeneratorSourceName="FillByPID" GetMethodModifier="Public" GetMethodName="GetDataByPID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByPID" UserSourceName="FillByPID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT     ID, NUMBER, START_DATE, END_DATE, NSI_ORGANIZATION_ID, NSI_TYPE_OF_ACTIVITY_ID, TYPE_WORK, TYPE_DOC, PARENT_CONTRACT_ID, 
                      DESCRIPTION, LAST_UPDATE, LAST_UPDATE_USER, PID
FROM         CONTRACT WHERE PID = @Pid</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="Pid" ColumnName="PID" DataSourceName="FSO2.dbo.CONTRACT" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Pid" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="COST_PROTOCOLTableAdapter" GeneratorDataComponentClassName="COST_PROTOCOLTableAdapter" Name="COST_PROTOCOL" UserDataComponentName="COST_PROTOCOLTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.COST_PROTOCOL" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [COST_PROTOCOL] WHERE (([ID] = @Original_ID) AND ((@IsNull_NUMBER = 1 AND [NUMBER] IS NULL) OR ([NUMBER] = @Original_NUMBER)) AND ((@IsNull_CONTRACT_ID = 1 AND [CONTRACT_ID] IS NULL) OR ([CONTRACT_ID] = @Original_CONTRACT_ID)) AND ((@IsNull_START_DATE = 1 AND [START_DATE] IS NULL) OR ([START_DATE] = @Original_START_DATE)) AND ((@IsNull_END_DATE = 1 AND [END_DATE] IS NULL) OR ([END_DATE] = @Original_END_DATE)) AND ((@IsNull_NSI_CURRENCY_ID = 1 AND [NSI_CURRENCY_ID] IS NULL) OR ([NSI_CURRENCY_ID] = @Original_NSI_CURRENCY_ID)) AND ((@IsNull_IS_AGREED = 1 AND [IS_AGREED] IS NULL) OR ([IS_AGREED] = @Original_IS_AGREED)) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)) AND ((@IsNull_PID = 1 AND [PID] IS NULL) OR ([PID] = @Original_PID)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NUMBER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_NUMBER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CONTRACT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CONTRACT_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_CONTRACT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CONTRACT_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_START_DATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="START_DATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_START_DATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="START_DATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_END_DATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="END_DATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_END_DATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="END_DATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NSI_CURRENCY_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_CURRENCY_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_NSI_CURRENCY_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_CURRENCY_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IS_AGREED" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IS_AGREED" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_IS_AGREED" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IS_AGREED" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [COST_PROTOCOL] ([NUMBER], [CONTRACT_ID], [START_DATE], [END_DATE], [NSI_CURRENCY_ID], [IS_AGREED], [LAST_UPDATE], [LAST_UPDATE_USER], [PID]) VALUES (@NUMBER, @CONTRACT_ID, @START_DATE, @END_DATE, @NSI_CURRENCY_ID, @IS_AGREED, @LAST_UPDATE, @LAST_UPDATE_USER, @PID);
SELECT ID, NUMBER, CONTRACT_ID, START_DATE, END_DATE, NSI_CURRENCY_ID, IS_AGREED, LAST_UPDATE, LAST_UPDATE_USER, PID FROM COST_PROTOCOL WHERE (ID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@NUMBER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@CONTRACT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CONTRACT_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@START_DATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="START_DATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@END_DATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="END_DATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@NSI_CURRENCY_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_CURRENCY_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@IS_AGREED" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IS_AGREED" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT     ID, NUMBER, CONTRACT_ID, START_DATE, END_DATE, NSI_CURRENCY_ID, IS_AGREED, LAST_UPDATE, LAST_UPDATE_USER, PID
FROM         COST_PROTOCOL</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [COST_PROTOCOL] SET [NUMBER] = @NUMBER, [CONTRACT_ID] = @CONTRACT_ID, [START_DATE] = @START_DATE, [END_DATE] = @END_DATE, [NSI_CURRENCY_ID] = @NSI_CURRENCY_ID, [IS_AGREED] = @IS_AGREED, [LAST_UPDATE] = @LAST_UPDATE, [LAST_UPDATE_USER] = @LAST_UPDATE_USER, [PID] = @PID WHERE (([ID] = @Original_ID) AND ((@IsNull_NUMBER = 1 AND [NUMBER] IS NULL) OR ([NUMBER] = @Original_NUMBER)) AND ((@IsNull_CONTRACT_ID = 1 AND [CONTRACT_ID] IS NULL) OR ([CONTRACT_ID] = @Original_CONTRACT_ID)) AND ((@IsNull_START_DATE = 1 AND [START_DATE] IS NULL) OR ([START_DATE] = @Original_START_DATE)) AND ((@IsNull_END_DATE = 1 AND [END_DATE] IS NULL) OR ([END_DATE] = @Original_END_DATE)) AND ((@IsNull_NSI_CURRENCY_ID = 1 AND [NSI_CURRENCY_ID] IS NULL) OR ([NSI_CURRENCY_ID] = @Original_NSI_CURRENCY_ID)) AND ((@IsNull_IS_AGREED = 1 AND [IS_AGREED] IS NULL) OR ([IS_AGREED] = @Original_IS_AGREED)) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)) AND ((@IsNull_PID = 1 AND [PID] IS NULL) OR ([PID] = @Original_PID)));
SELECT ID, NUMBER, CONTRACT_ID, START_DATE, END_DATE, NSI_CURRENCY_ID, IS_AGREED, LAST_UPDATE, LAST_UPDATE_USER, PID FROM COST_PROTOCOL WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@NUMBER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@CONTRACT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CONTRACT_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@START_DATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="START_DATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@END_DATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="END_DATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@NSI_CURRENCY_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_CURRENCY_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@IS_AGREED" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IS_AGREED" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NUMBER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_NUMBER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CONTRACT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CONTRACT_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_CONTRACT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CONTRACT_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_START_DATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="START_DATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_START_DATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="START_DATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_END_DATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="END_DATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_END_DATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="END_DATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NSI_CURRENCY_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_CURRENCY_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_NSI_CURRENCY_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_CURRENCY_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_IS_AGREED" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IS_AGREED" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_IS_AGREED" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IS_AGREED" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="FSO2.dbo.COST_PROTOCOL" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="NUMBER" DataSetColumn="NUMBER" />
              <Mapping SourceColumn="CONTRACT_ID" DataSetColumn="CONTRACT_ID" />
              <Mapping SourceColumn="START_DATE" DataSetColumn="START_DATE" />
              <Mapping SourceColumn="END_DATE" DataSetColumn="END_DATE" />
              <Mapping SourceColumn="NSI_CURRENCY_ID" DataSetColumn="NSI_CURRENCY_ID" />
              <Mapping SourceColumn="IS_AGREED" DataSetColumn="IS_AGREED" />
              <Mapping SourceColumn="LAST_UPDATE" DataSetColumn="LAST_UPDATE" />
              <Mapping SourceColumn="LAST_UPDATE_USER" DataSetColumn="LAST_UPDATE_USER" />
              <Mapping SourceColumn="PID" DataSetColumn="PID" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.COST_PROTOCOL" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByID" GeneratorSourceName="FillByID" GetMethodModifier="Public" GetMethodName="GetDataByID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByID" UserSourceName="FillByID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT     ID, NUMBER, CONTRACT_ID, START_DATE, END_DATE, NSI_CURRENCY_ID, IS_AGREED, LAST_UPDATE, LAST_UPDATE_USER, PID
FROM         COST_PROTOCOL
WHERE ID = @ID</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="FSO2.dbo.COST_PROTOCOL" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.COST_PROTOCOL" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByPid" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByPid" GeneratorSourceName="FillByPid" GetMethodModifier="Public" GetMethodName="GetDataByPid" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByPid" UserSourceName="FillByPid">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT     ID, NUMBER, CONTRACT_ID, START_DATE, END_DATE, NSI_CURRENCY_ID, IS_AGREED, LAST_UPDATE, LAST_UPDATE_USER, PID
FROM         COST_PROTOCOL WHERE PID = @Pid</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="Pid" ColumnName="PID" DataSourceName="FSO2.dbo.COST_PROTOCOL" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Pid" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.COST_PROTOCOL" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByPidCurID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByPidCurID" GeneratorSourceName="FillByPidCurID" GetMethodModifier="Public" GetMethodName="GetDataByPidCurID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByPidCurID" UserSourceName="FillByPidCurID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT     ID, NUMBER, CONTRACT_ID, START_DATE, END_DATE, NSI_CURRENCY_ID, IS_AGREED, LAST_UPDATE, LAST_UPDATE_USER, PID
FROM         COST_PROTOCOL
WHERE PID = @Pid AND NSI_CURRENCY_ID = @CurrencyID</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="Pid" ColumnName="PID" DataSourceName="FSO2.dbo.COST_PROTOCOL" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Pid" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="CurrencyID" ColumnName="NSI_CURRENCY_ID" DataSourceName="FSO2.dbo.COST_PROTOCOL" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@CurrencyID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="NSI_CURRENCY_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="CP_STAGETableAdapter" GeneratorDataComponentClassName="CP_STAGETableAdapter" Name="CP_STAGE" UserDataComponentName="CP_STAGETableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.CP_STAGE" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [CP_STAGE] WHERE (([ID] = @Original_ID) AND ((@IsNull_NUMBER = 1 AND [NUMBER] IS NULL) OR ([NUMBER] = @Original_NUMBER)) AND ((@IsNull_NAME = 1 AND [NAME] IS NULL) OR ([NAME] = @Original_NAME)) AND ((@IsNull_START_DATE = 1 AND [START_DATE] IS NULL) OR ([START_DATE] = @Original_START_DATE)) AND ((@IsNull_END_DATE = 1 AND [END_DATE] IS NULL) OR ([END_DATE] = @Original_END_DATE)) AND ((@IsNull_CALENDAR_PLAN_ID = 1 AND [CALENDAR_PLAN_ID] IS NULL) OR ([CALENDAR_PLAN_ID] = @Original_CALENDAR_PLAN_ID)) AND ((@IsNull_PARENT_STAGE_ID = 1 AND [PARENT_STAGE_ID] IS NULL) OR ([PARENT_STAGE_ID] = @Original_PARENT_STAGE_ID)) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)) AND ((@IsNull_PID = 1 AND [PID] IS NULL) OR ([PID] = @Original_PID)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NUMBER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_NUMBER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NAME" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NAME" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NAME" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_START_DATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="START_DATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_START_DATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="START_DATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_END_DATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="END_DATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_END_DATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="END_DATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CALENDAR_PLAN_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CALENDAR_PLAN_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_CALENDAR_PLAN_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CALENDAR_PLAN_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PARENT_STAGE_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PARENT_STAGE_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PARENT_STAGE_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PARENT_STAGE_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [CP_STAGE] ([NUMBER], [NAME], [START_DATE], [END_DATE], [CALENDAR_PLAN_ID], [PARENT_STAGE_ID], [LAST_UPDATE], [LAST_UPDATE_USER], [PID]) VALUES (@NUMBER, @NAME, @START_DATE, @END_DATE, @CALENDAR_PLAN_ID, @PARENT_STAGE_ID, @LAST_UPDATE, @LAST_UPDATE_USER, @PID);
SELECT ID, NUMBER, NAME, START_DATE, END_DATE, CALENDAR_PLAN_ID, PARENT_STAGE_ID, LAST_UPDATE, LAST_UPDATE_USER, PID FROM CP_STAGE WHERE (ID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@NUMBER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NAME" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@START_DATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="START_DATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@END_DATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="END_DATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@CALENDAR_PLAN_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CALENDAR_PLAN_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PARENT_STAGE_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PARENT_STAGE_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT     ID, NUMBER, NAME, START_DATE, END_DATE, CALENDAR_PLAN_ID, PARENT_STAGE_ID, LAST_UPDATE, LAST_UPDATE_USER, PID
FROM         CP_STAGE</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [CP_STAGE] SET [NUMBER] = @NUMBER, [NAME] = @NAME, [START_DATE] = @START_DATE, [END_DATE] = @END_DATE, [CALENDAR_PLAN_ID] = @CALENDAR_PLAN_ID, [PARENT_STAGE_ID] = @PARENT_STAGE_ID, [LAST_UPDATE] = @LAST_UPDATE, [LAST_UPDATE_USER] = @LAST_UPDATE_USER, [PID] = @PID WHERE (([ID] = @Original_ID) AND ((@IsNull_NUMBER = 1 AND [NUMBER] IS NULL) OR ([NUMBER] = @Original_NUMBER)) AND ((@IsNull_NAME = 1 AND [NAME] IS NULL) OR ([NAME] = @Original_NAME)) AND ((@IsNull_START_DATE = 1 AND [START_DATE] IS NULL) OR ([START_DATE] = @Original_START_DATE)) AND ((@IsNull_END_DATE = 1 AND [END_DATE] IS NULL) OR ([END_DATE] = @Original_END_DATE)) AND ((@IsNull_CALENDAR_PLAN_ID = 1 AND [CALENDAR_PLAN_ID] IS NULL) OR ([CALENDAR_PLAN_ID] = @Original_CALENDAR_PLAN_ID)) AND ((@IsNull_PARENT_STAGE_ID = 1 AND [PARENT_STAGE_ID] IS NULL) OR ([PARENT_STAGE_ID] = @Original_PARENT_STAGE_ID)) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)) AND ((@IsNull_PID = 1 AND [PID] IS NULL) OR ([PID] = @Original_PID)));
SELECT ID, NUMBER, NAME, START_DATE, END_DATE, CALENDAR_PLAN_ID, PARENT_STAGE_ID, LAST_UPDATE, LAST_UPDATE_USER, PID FROM CP_STAGE WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@NUMBER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NAME" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@START_DATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="START_DATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@END_DATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="END_DATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@CALENDAR_PLAN_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CALENDAR_PLAN_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PARENT_STAGE_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PARENT_STAGE_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NUMBER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_NUMBER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NAME" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NAME" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NAME" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_START_DATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="START_DATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_START_DATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="START_DATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_END_DATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="END_DATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_END_DATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="END_DATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CALENDAR_PLAN_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CALENDAR_PLAN_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_CALENDAR_PLAN_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CALENDAR_PLAN_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PARENT_STAGE_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PARENT_STAGE_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PARENT_STAGE_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PARENT_STAGE_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="ID" ColumnName="ID" DataSourceName="FSO2.dbo.CP_STAGE" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="NUMBER" DataSetColumn="NUMBER" />
              <Mapping SourceColumn="NAME" DataSetColumn="NAME" />
              <Mapping SourceColumn="START_DATE" DataSetColumn="START_DATE" />
              <Mapping SourceColumn="END_DATE" DataSetColumn="END_DATE" />
              <Mapping SourceColumn="CALENDAR_PLAN_ID" DataSetColumn="CALENDAR_PLAN_ID" />
              <Mapping SourceColumn="PARENT_STAGE_ID" DataSetColumn="PARENT_STAGE_ID" />
              <Mapping SourceColumn="LAST_UPDATE" DataSetColumn="LAST_UPDATE" />
              <Mapping SourceColumn="LAST_UPDATE_USER" DataSetColumn="LAST_UPDATE_USER" />
              <Mapping SourceColumn="PID" DataSetColumn="PID" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.CP_STAGE" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByCalendarPlanId" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByCalendarPlanId" GeneratorSourceName="FillByCalendarPlanId" GetMethodModifier="Public" GetMethodName="GetDataByCalendarPlanId" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByCalendarPlanId" UserSourceName="FillByCalendarPlanId">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT     CALENDAR_PLAN_ID, END_DATE, ID, LAST_UPDATE, LAST_UPDATE_USER, NAME, NUMBER, PARENT_STAGE_ID, PID, START_DATE
FROM         CP_STAGE
WHERE     (CALENDAR_PLAN_ID = @CalendarPlanId)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="CalendarPlanId" ColumnName="CALENDAR_PLAN_ID" DataSourceName="FSO2.dbo.CP_STAGE" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@CalendarPlanId" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="CALENDAR_PLAN_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="INVOICE_INTableAdapter" GeneratorDataComponentClassName="INVOICE_INTableAdapter" Name="INVOICE_IN" UserDataComponentName="INVOICE_INTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [INVOICE_IN] WHERE (([ID] = @Original_ID) AND ((@IsNull_NUMBER = 1 AND [NUMBER] IS NULL) OR ([NUMBER] = @Original_NUMBER)) AND ((@IsNull_REG_NUMBER = 1 AND [REG_NUMBER] IS NULL) OR ([REG_NUMBER] = @Original_REG_NUMBER)) AND ((@IsNull_AREAL = 1 AND [AREAL] IS NULL) OR ([AREAL] = @Original_AREAL)) AND ((@IsNull_NSI_CONTRACT_ID = 1 AND [NSI_CONTRACT_ID] IS NULL) OR ([NSI_CONTRACT_ID] = @Original_NSI_CONTRACT_ID)) AND ((@IsNull_DATE = 1 AND [DATE] IS NULL) OR ([DATE] = @Original_DATE)) AND ((@IsNull_SUM = 1 AND [SUM] IS NULL) OR ([SUM] = @Original_SUM)) AND ((@IsNull_NSI_CURRENCY_ID = 1 AND [NSI_CURRENCY_ID] IS NULL) OR ([NSI_CURRENCY_ID] = @Original_NSI_CURRENCY_ID)) AND ((@IsNull_NSI_TYPE_OF_ACTIVITY_ID = 1 AND [NSI_TYPE_OF_ACTIVITY_ID] IS NULL) OR ([NSI_TYPE_OF_ACTIVITY_ID] = @Original_NSI_TYPE_OF_ACTIVITY_ID)) AND ((@IsNull_N_FOLDER = 1 AND [N_FOLDER] IS NULL) OR ([N_FOLDER] = @Original_N_FOLDER)) AND ((@IsNull_NSI_FINANCE_RESOURCE_ID = 1 AND [NSI_FINANCE_RESOURCE_ID] IS NULL) OR ([NSI_FINANCE_RESOURCE_ID] = @Original_NSI_FINANCE_RESOURCE_ID)) AND ((@IsNull_NSI_EXPENSE_ITEM_ID = 1 AND [NSI_EXPENSE_ITEM_ID] IS NULL) OR ([NSI_EXPENSE_ITEM_ID] = @Original_NSI_EXPENSE_ITEM_ID)) AND ((@IsNull_CITY = 1 AND [CITY] IS NULL) OR ([CITY] = @Original_CITY)) AND ((@IsNull_NSI_ORGANIZATION_ID = 1 AND [NSI_ORGANIZATION_ID] IS NULL) OR ([NSI_ORGANIZATION_ID] = @Original_NSI_ORGANIZATION_ID)) AND ((@IsNull_CONTRACT_NUMBER = 1 AND [CONTRACT_NUMBER] IS NULL) OR ([CONTRACT_NUMBER] = @Original_CONTRACT_NUMBER)) AND ((@IsNull_CONTRACT_DATE = 1 AND [CONTRACT_DATE] IS NULL) OR ([CONTRACT_DATE] = @Original_CONTRACT_DATE)) AND ((@IsNull_STATE = 1 AND [STATE] IS NULL) OR ([STATE] = @Original_STATE)) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)) AND ((@IsNull_NSI_PAY_DIRECT_ID = 1 AND [NSI_PAY_DIRECT_ID] IS NULL) OR ([NSI_PAY_DIRECT_ID] = @Original_NSI_PAY_DIRECT_ID)) AND ((@IsNull_PLAN_PAY_DATE = 1 AND [PLAN_PAY_DATE] IS NULL) OR ([PLAN_PAY_DATE] = @Original_PLAN_PAY_DATE)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NUMBER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_NUMBER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_REG_NUMBER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="REG_NUMBER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_REG_NUMBER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="REG_NUMBER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_AREAL" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AREAL" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_AREAL" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="AREAL" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NSI_CONTRACT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_CONTRACT_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_NSI_CONTRACT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_CONTRACT_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_DATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="DATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SUM" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SUM" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_SUM" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="SUM" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NSI_CURRENCY_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_CURRENCY_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_NSI_CURRENCY_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_CURRENCY_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NSI_TYPE_OF_ACTIVITY_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_TYPE_OF_ACTIVITY_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_NSI_TYPE_OF_ACTIVITY_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_TYPE_OF_ACTIVITY_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_N_FOLDER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="N_FOLDER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Original_N_FOLDER" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="N_FOLDER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NSI_FINANCE_RESOURCE_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_FINANCE_RESOURCE_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_NSI_FINANCE_RESOURCE_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_FINANCE_RESOURCE_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NSI_EXPENSE_ITEM_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_EXPENSE_ITEM_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_NSI_EXPENSE_ITEM_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_EXPENSE_ITEM_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CITY" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CITY" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CITY" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CITY" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NSI_ORGANIZATION_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_ORGANIZATION_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_NSI_ORGANIZATION_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_ORGANIZATION_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CONTRACT_NUMBER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CONTRACT_NUMBER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CONTRACT_NUMBER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CONTRACT_NUMBER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CONTRACT_DATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CONTRACT_DATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_CONTRACT_DATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="CONTRACT_DATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_STATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="STATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_STATE" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="STATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NSI_PAY_DIRECT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_PAY_DIRECT_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_NSI_PAY_DIRECT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_PAY_DIRECT_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PLAN_PAY_DATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PLAN_PAY_DATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_PLAN_PAY_DATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="PLAN_PAY_DATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>INSERT INTO INVOICE_IN
                      (NUMBER, REG_NUMBER, AREAL, NSI_CONTRACT_ID, DATE, SUM, NSI_CURRENCY_ID, NSI_TYPE_OF_ACTIVITY_ID, N_FOLDER, 
                      NSI_FINANCE_RESOURCE_ID, NSI_EXPENSE_ITEM_ID, CITY, NSI_ORGANIZATION_ID, CONTRACT_NUMBER, CONTRACT_DATE, STATE, 
                      DESCRIPTION, LAST_UPDATE, LAST_UPDATE_USER, NSI_PAY_DIRECT_ID, PLAN_PAY_DATE, PID)
VALUES     (@NUMBER,@REG_NUMBER,@AREAL,@NSI_CONTRACT_ID,@DATE,@SUM,@NSI_CURRENCY_ID,@NSI_TYPE_OF_ACTIVITY_ID,@N_FOLDER,@NSI_FINANCE_RESOURCE_ID,@NSI_EXPENSE_ITEM_ID,@CITY,@NSI_ORGANIZATION_ID,@CONTRACT_NUMBER,@CONTRACT_DATE,@STATE,@DESCRIPTION,@LAST_UPDATE,@LAST_UPDATE_USER,@NSI_PAY_DIRECT_ID,@PLAN_PAY_DATE,@PID);    
SELECT ID, NUMBER, REG_NUMBER, AREAL, NSI_CONTRACT_ID, DATE, SUM, NSI_CURRENCY_ID, NSI_TYPE_OF_ACTIVITY_ID, N_FOLDER, NSI_FINANCE_RESOURCE_ID, NSI_EXPENSE_ITEM_ID, CITY, NSI_ORGANIZATION_ID, CONTRACT_NUMBER, CONTRACT_DATE, STATE, DESCRIPTION, LAST_UPDATE, LAST_UPDATE_USER, NSI_PAY_DIRECT_ID, PLAN_PAY_DATE FROM INVOICE_IN WHERE (ID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="NUMBER" ColumnName="NUMBER" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@NUMBER" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="NUMBER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="REG_NUMBER" ColumnName="REG_NUMBER" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@REG_NUMBER" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="REG_NUMBER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="AREAL" ColumnName="AREAL" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@AREAL" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="AREAL" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="NSI_CONTRACT_ID" ColumnName="NSI_CONTRACT_ID" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@NSI_CONTRACT_ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="NSI_CONTRACT_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="DATE" ColumnName="DATE" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="datetime2" DbType="AnsiString" Direction="Input" ParameterName="@DATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="8" SourceColumn="DATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="SUM" ColumnName="SUM" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="money" DbType="Currency" Direction="Input" ParameterName="@SUM" Precision="0" ProviderType="Money" Scale="0" Size="8" SourceColumn="SUM" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="NSI_CURRENCY_ID" ColumnName="NSI_CURRENCY_ID" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@NSI_CURRENCY_ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="NSI_CURRENCY_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="NSI_TYPE_OF_ACTIVITY_ID" ColumnName="NSI_TYPE_OF_ACTIVITY_ID" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@NSI_TYPE_OF_ACTIVITY_ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="NSI_TYPE_OF_ACTIVITY_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="N_FOLDER" ColumnName="N_FOLDER" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="smallint" DbType="Int16" Direction="Input" ParameterName="@N_FOLDER" Precision="0" ProviderType="SmallInt" Scale="0" Size="2" SourceColumn="N_FOLDER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="NSI_FINANCE_RESOURCE_ID" ColumnName="NSI_FINANCE_RESOURCE_ID" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@NSI_FINANCE_RESOURCE_ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="NSI_FINANCE_RESOURCE_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="NSI_EXPENSE_ITEM_ID" ColumnName="NSI_EXPENSE_ITEM_ID" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@NSI_EXPENSE_ITEM_ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="NSI_EXPENSE_ITEM_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="CITY" ColumnName="CITY" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@CITY" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="CITY" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="NSI_ORGANIZATION_ID" ColumnName="NSI_ORGANIZATION_ID" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@NSI_ORGANIZATION_ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="NSI_ORGANIZATION_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="CONTRACT_NUMBER" ColumnName="CONTRACT_NUMBER" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@CONTRACT_NUMBER" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="CONTRACT_NUMBER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="CONTRACT_DATE" ColumnName="CONTRACT_DATE" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="datetime2" DbType="AnsiString" Direction="Input" ParameterName="@CONTRACT_DATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="8" SourceColumn="CONTRACT_DATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="STATE" ColumnName="STATE" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@STATE" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="STATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="DESCRIPTION" ColumnName="DESCRIPTION" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="nvarchar(MAX)" DbType="String" Direction="Input" ParameterName="@DESCRIPTION" Precision="0" ProviderType="NVarChar" Scale="0" Size="2147483647" SourceColumn="DESCRIPTION" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="LAST_UPDATE" ColumnName="LAST_UPDATE" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="datetime2" DbType="AnsiString" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="8" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="LAST_UPDATE_USER" ColumnName="LAST_UPDATE_USER" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="NSI_PAY_DIRECT_ID" ColumnName="NSI_PAY_DIRECT_ID" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@NSI_PAY_DIRECT_ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="NSI_PAY_DIRECT_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="PLAN_PAY_DATE" ColumnName="PLAN_PAY_DATE" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="datetime2" DbType="AnsiString" Direction="Input" ParameterName="@PLAN_PAY_DATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="8" SourceColumn="PLAN_PAY_DATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="PID" ColumnName="PID" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT     INVOICE_IN.ID, INVOICE_IN.NUMBER, INVOICE_IN.REG_NUMBER, INVOICE_IN.AREAL, INVOICE_IN.NSI_CONTRACT_ID, INVOICE_IN.DATE, 
                      INVOICE_IN.SUM, INVOICE_IN.NSI_CURRENCY_ID, INVOICE_IN.NSI_TYPE_OF_ACTIVITY_ID, INVOICE_IN.N_FOLDER, 
                      INVOICE_IN.NSI_FINANCE_RESOURCE_ID, INVOICE_IN.NSI_EXPENSE_ITEM_ID, INVOICE_IN.CITY, INVOICE_IN.CONTRACT_NUMBER, 
                      INVOICE_IN.CONTRACT_DATE, INVOICE_IN.STATE, INVOICE_IN.DESCRIPTION, INVOICE_IN.LAST_UPDATE, INVOICE_IN.LAST_UPDATE_USER, 
                      INVOICE_IN.NSI_PAY_DIRECT_ID, INVOICE_IN.PLAN_PAY_DATE, CONTRACT.NUMBER AS CONTRACT_C_NUMBER, 
                      CONTRACT.START_DATE AS CONTRACT_C_START_DAY, NSI_ORGANIZATION.SHORT_NAME AS NSI_ORG_NAME, INVOICE_IN.NSI_ORGANIZATION_ID, 
                      INVOICE_IN.PID
FROM         INVOICE_IN LEFT OUTER JOIN
                      NSI_ORGANIZATION ON INVOICE_IN.NSI_ORGANIZATION_ID = NSI_ORGANIZATION.ID LEFT OUTER JOIN
                      CONTRACT ON INVOICE_IN.NSI_CONTRACT_ID = CONTRACT.ID</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>UPDATE    INVOICE_IN
SET              NUMBER = @NUMBER, REG_NUMBER = @REG_NUMBER, AREAL = @AREAL, NSI_CONTRACT_ID = @NSI_CONTRACT_ID, DATE = @DATE, 
                      SUM = @SUM, NSI_CURRENCY_ID = @NSI_CURRENCY_ID, NSI_TYPE_OF_ACTIVITY_ID = @NSI_TYPE_OF_ACTIVITY_ID, N_FOLDER = @N_FOLDER, 
                      NSI_FINANCE_RESOURCE_ID = @NSI_FINANCE_RESOURCE_ID, NSI_EXPENSE_ITEM_ID = @NSI_EXPENSE_ITEM_ID, CITY = @CITY, 
                      NSI_ORGANIZATION_ID = @NSI_ORGANIZATION_ID, CONTRACT_NUMBER = @CONTRACT_NUMBER, CONTRACT_DATE = @CONTRACT_DATE, 
                      STATE = @STATE, DESCRIPTION = @DESCRIPTION, LAST_UPDATE = @LAST_UPDATE, LAST_UPDATE_USER = @LAST_UPDATE_USER, 
                      NSI_PAY_DIRECT_ID = @NSI_PAY_DIRECT_ID, PLAN_PAY_DATE = @PLAN_PAY_DATE, PID = @PID
WHERE     (ID = @Original_ID) AND (@IsNull_NUMBER = 1 AND NUMBER IS NULL OR
                      NUMBER = @Original_NUMBER) AND (@IsNull_REG_NUMBER = 1 AND REG_NUMBER IS NULL OR
                      REG_NUMBER = @Original_REG_NUMBER) AND (@IsNull_AREAL = 1 AND AREAL IS NULL OR
                      AREAL = @Original_AREAL) AND (@IsNull_NSI_CONTRACT_ID = 1 AND NSI_CONTRACT_ID IS NULL OR
                      NSI_CONTRACT_ID = @Original_NSI_CONTRACT_ID) AND (@IsNull_DATE = 1 AND DATE IS NULL OR
                      DATE = @Original_DATE) AND (@IsNull_SUM = 1 AND SUM IS NULL OR
                      SUM = @Original_SUM) AND (@IsNull_NSI_CURRENCY_ID = 1 AND NSI_CURRENCY_ID IS NULL OR
                      NSI_CURRENCY_ID = @Original_NSI_CURRENCY_ID) AND (@IsNull_NSI_TYPE_OF_ACTIVITY_ID = 1 AND NSI_TYPE_OF_ACTIVITY_ID IS NULL OR
                      NSI_TYPE_OF_ACTIVITY_ID = @Original_NSI_TYPE_OF_ACTIVITY_ID) AND (@IsNull_N_FOLDER = 1 AND N_FOLDER IS NULL OR
                      N_FOLDER = @Original_N_FOLDER) AND (@IsNull_NSI_FINANCE_RESOURCE_ID = 1 AND NSI_FINANCE_RESOURCE_ID IS NULL OR
                      NSI_FINANCE_RESOURCE_ID = @Original_NSI_FINANCE_RESOURCE_ID) AND (@IsNull_NSI_EXPENSE_ITEM_ID = 1 AND 
                      NSI_EXPENSE_ITEM_ID IS NULL OR
                      NSI_EXPENSE_ITEM_ID = @Original_NSI_EXPENSE_ITEM_ID) AND (@IsNull_CITY = 1 AND CITY IS NULL OR
                      CITY = @Original_CITY) AND (@IsNull_NSI_ORGANIZATION_ID = 1 AND NSI_ORGANIZATION_ID IS NULL OR
                      NSI_ORGANIZATION_ID = @Original_NSI_ORGANIZATION_ID) AND (@IsNull_CONTRACT_NUMBER = 1 AND CONTRACT_NUMBER IS NULL OR
                      CONTRACT_NUMBER = @Original_CONTRACT_NUMBER) AND (@IsNull_CONTRACT_DATE = 1 AND CONTRACT_DATE IS NULL OR
                      CONTRACT_DATE = @Original_CONTRACT_DATE) AND (@IsNull_STATE = 1 AND STATE IS NULL OR
                      STATE = @Original_STATE) AND (@IsNull_LAST_UPDATE = 1 AND LAST_UPDATE IS NULL OR
                      LAST_UPDATE = @Original_LAST_UPDATE) AND (@IsNull_LAST_UPDATE_USER = 1 AND LAST_UPDATE_USER IS NULL OR
                      LAST_UPDATE_USER = @Original_LAST_UPDATE_USER) AND (@IsNull_NSI_PAY_DIRECT_ID = 1 AND NSI_PAY_DIRECT_ID IS NULL OR
                      NSI_PAY_DIRECT_ID = @Original_NSI_PAY_DIRECT_ID) AND (@IsNull_PLAN_PAY_DATE = 1 AND PLAN_PAY_DATE IS NULL OR
                      PLAN_PAY_DATE = @Original_PLAN_PAY_DATE) AND (@IsNull_PID = 1 AND PID IS NULL OR
                      PID = @Original_PID);   
SELECT ID, NUMBER, REG_NUMBER, AREAL, NSI_CONTRACT_ID, DATE, SUM, NSI_CURRENCY_ID, NSI_TYPE_OF_ACTIVITY_ID, N_FOLDER, NSI_FINANCE_RESOURCE_ID, NSI_EXPENSE_ITEM_ID, CITY, NSI_ORGANIZATION_ID, CONTRACT_NUMBER, CONTRACT_DATE, STATE, DESCRIPTION, LAST_UPDATE, LAST_UPDATE_USER, NSI_PAY_DIRECT_ID, PLAN_PAY_DATE FROM INVOICE_IN WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="NUMBER" ColumnName="NUMBER" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@NUMBER" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="NUMBER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="REG_NUMBER" ColumnName="REG_NUMBER" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@REG_NUMBER" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="REG_NUMBER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="AREAL" ColumnName="AREAL" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@AREAL" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="AREAL" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="NSI_CONTRACT_ID" ColumnName="NSI_CONTRACT_ID" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@NSI_CONTRACT_ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="NSI_CONTRACT_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="DATE" ColumnName="DATE" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="datetime2" DbType="AnsiString" Direction="Input" ParameterName="@DATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="8" SourceColumn="DATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="SUM" ColumnName="SUM" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="money" DbType="Currency" Direction="Input" ParameterName="@SUM" Precision="0" ProviderType="Money" Scale="0" Size="8" SourceColumn="SUM" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="NSI_CURRENCY_ID" ColumnName="NSI_CURRENCY_ID" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@NSI_CURRENCY_ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="NSI_CURRENCY_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="NSI_TYPE_OF_ACTIVITY_ID" ColumnName="NSI_TYPE_OF_ACTIVITY_ID" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@NSI_TYPE_OF_ACTIVITY_ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="NSI_TYPE_OF_ACTIVITY_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="N_FOLDER" ColumnName="N_FOLDER" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="smallint" DbType="Int16" Direction="Input" ParameterName="@N_FOLDER" Precision="0" ProviderType="SmallInt" Scale="0" Size="2" SourceColumn="N_FOLDER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="NSI_FINANCE_RESOURCE_ID" ColumnName="NSI_FINANCE_RESOURCE_ID" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@NSI_FINANCE_RESOURCE_ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="NSI_FINANCE_RESOURCE_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="NSI_EXPENSE_ITEM_ID" ColumnName="NSI_EXPENSE_ITEM_ID" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@NSI_EXPENSE_ITEM_ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="NSI_EXPENSE_ITEM_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="CITY" ColumnName="CITY" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@CITY" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="CITY" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="NSI_ORGANIZATION_ID" ColumnName="NSI_ORGANIZATION_ID" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@NSI_ORGANIZATION_ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="NSI_ORGANIZATION_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="CONTRACT_NUMBER" ColumnName="CONTRACT_NUMBER" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@CONTRACT_NUMBER" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="CONTRACT_NUMBER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="CONTRACT_DATE" ColumnName="CONTRACT_DATE" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="datetime2" DbType="AnsiString" Direction="Input" ParameterName="@CONTRACT_DATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="8" SourceColumn="CONTRACT_DATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="STATE" ColumnName="STATE" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@STATE" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="STATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="DESCRIPTION" ColumnName="DESCRIPTION" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="nvarchar(MAX)" DbType="String" Direction="Input" ParameterName="@DESCRIPTION" Precision="0" ProviderType="NVarChar" Scale="0" Size="2147483647" SourceColumn="DESCRIPTION" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="LAST_UPDATE" ColumnName="LAST_UPDATE" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="datetime2" DbType="AnsiString" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="8" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="LAST_UPDATE_USER" ColumnName="LAST_UPDATE_USER" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="NSI_PAY_DIRECT_ID" ColumnName="NSI_PAY_DIRECT_ID" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@NSI_PAY_DIRECT_ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="NSI_PAY_DIRECT_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="PLAN_PAY_DATE" ColumnName="PLAN_PAY_DATE" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="datetime2" DbType="AnsiString" Direction="Input" ParameterName="@PLAN_PAY_DATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="8" SourceColumn="PLAN_PAY_DATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="PID" ColumnName="PID" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="Original_ID" ColumnName="ID" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="IsNull_NUMBER" ColumnName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IsNull_NUMBER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="Original_NUMBER" ColumnName="NUMBER" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@Original_NUMBER" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="NUMBER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="IsNull_REG_NUMBER" ColumnName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IsNull_REG_NUMBER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="REG_NUMBER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="Original_REG_NUMBER" ColumnName="REG_NUMBER" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Original_REG_NUMBER" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="REG_NUMBER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="IsNull_AREAL" ColumnName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IsNull_AREAL" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AREAL" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="Original_AREAL" ColumnName="AREAL" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@Original_AREAL" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="AREAL" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="IsNull_NSI_CONTRACT_ID" ColumnName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IsNull_NSI_CONTRACT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_CONTRACT_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="Original_NSI_CONTRACT_ID" ColumnName="NSI_CONTRACT_ID" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Original_NSI_CONTRACT_ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="NSI_CONTRACT_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="IsNull_DATE" ColumnName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IsNull_DATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="Original_DATE" ColumnName="DATE" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="datetime2" DbType="AnsiString" Direction="Input" ParameterName="@Original_DATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="8" SourceColumn="DATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="IsNull_SUM" ColumnName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IsNull_SUM" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SUM" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="Original_SUM" ColumnName="SUM" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="money" DbType="Currency" Direction="Input" ParameterName="@Original_SUM" Precision="0" ProviderType="Money" Scale="0" Size="8" SourceColumn="SUM" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="IsNull_NSI_CURRENCY_ID" ColumnName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IsNull_NSI_CURRENCY_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_CURRENCY_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="Original_NSI_CURRENCY_ID" ColumnName="NSI_CURRENCY_ID" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Original_NSI_CURRENCY_ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="NSI_CURRENCY_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="IsNull_NSI_TYPE_OF_ACTIVITY_ID" ColumnName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IsNull_NSI_TYPE_OF_ACTIVITY_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_TYPE_OF_ACTIVITY_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="Original_NSI_TYPE_OF_ACTIVITY_ID" ColumnName="NSI_TYPE_OF_ACTIVITY_ID" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Original_NSI_TYPE_OF_ACTIVITY_ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="NSI_TYPE_OF_ACTIVITY_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="IsNull_N_FOLDER" ColumnName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IsNull_N_FOLDER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="N_FOLDER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="Original_N_FOLDER" ColumnName="N_FOLDER" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="smallint" DbType="Int16" Direction="Input" ParameterName="@Original_N_FOLDER" Precision="0" ProviderType="SmallInt" Scale="0" Size="2" SourceColumn="N_FOLDER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="IsNull_NSI_FINANCE_RESOURCE_ID" ColumnName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IsNull_NSI_FINANCE_RESOURCE_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_FINANCE_RESOURCE_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="Original_NSI_FINANCE_RESOURCE_ID" ColumnName="NSI_FINANCE_RESOURCE_ID" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Original_NSI_FINANCE_RESOURCE_ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="NSI_FINANCE_RESOURCE_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="IsNull_NSI_EXPENSE_ITEM_ID" ColumnName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IsNull_NSI_EXPENSE_ITEM_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_EXPENSE_ITEM_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="Original_NSI_EXPENSE_ITEM_ID" ColumnName="NSI_EXPENSE_ITEM_ID" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Original_NSI_EXPENSE_ITEM_ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="NSI_EXPENSE_ITEM_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="IsNull_CITY" ColumnName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IsNull_CITY" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CITY" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="Original_CITY" ColumnName="CITY" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@Original_CITY" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="CITY" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="IsNull_NSI_ORGANIZATION_ID" ColumnName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IsNull_NSI_ORGANIZATION_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_ORGANIZATION_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="Original_NSI_ORGANIZATION_ID" ColumnName="NSI_ORGANIZATION_ID" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Original_NSI_ORGANIZATION_ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="NSI_ORGANIZATION_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="IsNull_CONTRACT_NUMBER" ColumnName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IsNull_CONTRACT_NUMBER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CONTRACT_NUMBER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="Original_CONTRACT_NUMBER" ColumnName="CONTRACT_NUMBER" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@Original_CONTRACT_NUMBER" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="CONTRACT_NUMBER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="IsNull_CONTRACT_DATE" ColumnName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IsNull_CONTRACT_DATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CONTRACT_DATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="Original_CONTRACT_DATE" ColumnName="CONTRACT_DATE" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="datetime2" DbType="AnsiString" Direction="Input" ParameterName="@Original_CONTRACT_DATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="8" SourceColumn="CONTRACT_DATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="IsNull_STATE" ColumnName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IsNull_STATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="STATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="Original_STATE" ColumnName="STATE" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@Original_STATE" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="STATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="IsNull_LAST_UPDATE" ColumnName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="Original_LAST_UPDATE" ColumnName="LAST_UPDATE" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="datetime2" DbType="AnsiString" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="8" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="IsNull_LAST_UPDATE_USER" ColumnName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="Original_LAST_UPDATE_USER" ColumnName="LAST_UPDATE_USER" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="IsNull_NSI_PAY_DIRECT_ID" ColumnName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IsNull_NSI_PAY_DIRECT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_PAY_DIRECT_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="Original_NSI_PAY_DIRECT_ID" ColumnName="NSI_PAY_DIRECT_ID" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Original_NSI_PAY_DIRECT_ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="NSI_PAY_DIRECT_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="IsNull_PLAN_PAY_DATE" ColumnName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IsNull_PLAN_PAY_DATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PLAN_PAY_DATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="Original_PLAN_PAY_DATE" ColumnName="PLAN_PAY_DATE" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="datetime2" DbType="AnsiString" Direction="Input" ParameterName="@Original_PLAN_PAY_DATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="8" SourceColumn="PLAN_PAY_DATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="IsNull_PID" ColumnName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IsNull_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="Original_PID" ColumnName="PID" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Original_PID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="NUMBER" DataSetColumn="NUMBER" />
              <Mapping SourceColumn="REG_NUMBER" DataSetColumn="REG_NUMBER" />
              <Mapping SourceColumn="AREAL" DataSetColumn="AREAL" />
              <Mapping SourceColumn="NSI_CONTRACT_ID" DataSetColumn="NSI_CONTRACT_ID" />
              <Mapping SourceColumn="DATE" DataSetColumn="DATE" />
              <Mapping SourceColumn="SUM" DataSetColumn="SUM" />
              <Mapping SourceColumn="NSI_CURRENCY_ID" DataSetColumn="NSI_CURRENCY_ID" />
              <Mapping SourceColumn="NSI_TYPE_OF_ACTIVITY_ID" DataSetColumn="NSI_TYPE_OF_ACTIVITY_ID" />
              <Mapping SourceColumn="N_FOLDER" DataSetColumn="N_FOLDER" />
              <Mapping SourceColumn="NSI_FINANCE_RESOURCE_ID" DataSetColumn="NSI_FINANCE_RESOURCE_ID" />
              <Mapping SourceColumn="NSI_EXPENSE_ITEM_ID" DataSetColumn="NSI_EXPENSE_ITEM_ID" />
              <Mapping SourceColumn="CITY" DataSetColumn="CITY" />
              <Mapping SourceColumn="CONTRACT_NUMBER" DataSetColumn="CONTRACT_NUMBER" />
              <Mapping SourceColumn="CONTRACT_DATE" DataSetColumn="CONTRACT_DATE" />
              <Mapping SourceColumn="STATE" DataSetColumn="STATE" />
              <Mapping SourceColumn="DESCRIPTION" DataSetColumn="DESCRIPTION" />
              <Mapping SourceColumn="LAST_UPDATE" DataSetColumn="LAST_UPDATE" />
              <Mapping SourceColumn="LAST_UPDATE_USER" DataSetColumn="LAST_UPDATE_USER" />
              <Mapping SourceColumn="NSI_PAY_DIRECT_ID" DataSetColumn="NSI_PAY_DIRECT_ID" />
              <Mapping SourceColumn="PLAN_PAY_DATE" DataSetColumn="PLAN_PAY_DATE" />
              <Mapping SourceColumn="NSI_ORG_NAME" DataSetColumn="NSI_ORG_NAME" />
              <Mapping SourceColumn="NSI_ORGANIZATION_ID" DataSetColumn="NSI_ORGANIZATION_ID" />
              <Mapping SourceColumn="CONTRACT_C_NUMBER" DataSetColumn="CONTRACT_C_NUMBER" />
              <Mapping SourceColumn="CONTRACT_C_START_DAY" DataSetColumn="CONTRACT_C_START_DAY" />
              <Mapping SourceColumn="PID" DataSetColumn="PID" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.INVOICE_IN" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByContractId" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByContractId" GeneratorSourceName="FillByContractId" GetMethodModifier="Public" GetMethodName="GetDataByContractId" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByContractId" UserSourceName="FillByContractId">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT     ID, NUMBER, REG_NUMBER, AREAL, NSI_CONTRACT_ID, DATE, SUM, NSI_CURRENCY_ID, NSI_TYPE_OF_ACTIVITY_ID, N_FOLDER, 
                      NSI_FINANCE_RESOURCE_ID, NSI_EXPENSE_ITEM_ID, CITY, NSI_ORGANIZATION_ID, CONTRACT_NUMBER, CONTRACT_DATE, STATE, 
                      DESCRIPTION, LAST_UPDATE, LAST_UPDATE_USER, NSI_PAY_DIRECT_ID, PLAN_PAY_DATE, PID
FROM         INVOICE_IN
WHERE     (NSI_CONTRACT_ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="ID" ColumnName="NSI_CONTRACT_ID" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="NSI_CONTRACT_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="FillByID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByID" GeneratorSourceName="FillByID" GetMethodModifier="Public" GetMethodName="GetDataByID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByID" UserSourceName="FillByID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT     INVOICE_IN.ID, INVOICE_IN.NUMBER, INVOICE_IN.REG_NUMBER, INVOICE_IN.AREAL, INVOICE_IN.NSI_CONTRACT_ID, INVOICE_IN.DATE, 
                      INVOICE_IN.SUM, INVOICE_IN.NSI_CURRENCY_ID, INVOICE_IN.NSI_TYPE_OF_ACTIVITY_ID, INVOICE_IN.N_FOLDER, 
                      INVOICE_IN.NSI_FINANCE_RESOURCE_ID, INVOICE_IN.NSI_EXPENSE_ITEM_ID, INVOICE_IN.CITY, INVOICE_IN.CONTRACT_NUMBER, 
                      INVOICE_IN.CONTRACT_DATE, INVOICE_IN.STATE, INVOICE_IN.DESCRIPTION, INVOICE_IN.LAST_UPDATE, INVOICE_IN.LAST_UPDATE_USER, 
                      INVOICE_IN.NSI_PAY_DIRECT_ID, INVOICE_IN.PLAN_PAY_DATE, CONTRACT.NUMBER AS CONTRACT_C_NUMBER, 
                      CONTRACT.START_DATE AS CONTRACT_C_START_DAY, NSI_ORGANIZATION.SHORT_NAME AS NSI_ORG_NAME, INVOICE_IN.NSI_ORGANIZATION_ID, 
                      INVOICE_IN.PID
FROM         INVOICE_IN LEFT OUTER JOIN
                      NSI_ORGANIZATION ON INVOICE_IN.NSI_ORGANIZATION_ID = NSI_ORGANIZATION.ID LEFT OUTER JOIN
                      CONTRACT ON INVOICE_IN.NSI_CONTRACT_ID = CONTRACT.ID
WHERE     (INVOICE_IN.ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.INVOICE_IN" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByOrganizationId" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByOrganizationId" GeneratorSourceName="FillByOrganizationId" GetMethodModifier="Public" GetMethodName="GetDataByOrganizationId" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByOrganizationId" UserSourceName="FillByOrganizationId">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT     ID, NUMBER, REG_NUMBER, AREAL, NSI_CONTRACT_ID, DATE, SUM, NSI_CURRENCY_ID, NSI_TYPE_OF_ACTIVITY_ID, N_FOLDER, 
                      NSI_FINANCE_RESOURCE_ID, NSI_EXPENSE_ITEM_ID, CITY, NSI_ORGANIZATION_ID, CONTRACT_NUMBER, CONTRACT_DATE, STATE, 
                      DESCRIPTION, LAST_UPDATE, LAST_UPDATE_USER, NSI_PAY_DIRECT_ID, PLAN_PAY_DATE, PID
FROM         INVOICE_IN
WHERE     (NSI_ORGANIZATION_ID = @OrgID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="OrgID" ColumnName="NSI_ORGANIZATION_ID" DataSourceName="FSO2.dbo.INVOICE_IN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@OrgID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="NSI_ORGANIZATION_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.GetInvInRegNum" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="GetInvInRegNum" Modifier="Public" Name="GetInvInRegNum" QueryType="Scalar" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="GetInvInRegNum">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.GetInvInRegNum</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="INVOICE_IN_ITEMTableAdapter" GeneratorDataComponentClassName="INVOICE_IN_ITEMTableAdapter" Name="INVOICE_IN_ITEM" UserDataComponentName="INVOICE_IN_ITEMTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[INVOICE_IN_ITEM] WHERE (([ID] = @Original_ID) AND ((@IsNull_INVOICE_IN_ID = 1 AND [INVOICE_IN_ID] IS NULL) OR ([INVOICE_IN_ID] = @Original_INVOICE_IN_ID)) AND ((@IsNull_NSI_MATERIAL_ID = 1 AND [NSI_MATERIAL_ID] IS NULL) OR ([NSI_MATERIAL_ID] = @Original_NSI_MATERIAL_ID)) AND ((@IsNull_COMMENTS = 1 AND [COMMENTS] IS NULL) OR ([COMMENTS] = @Original_COMMENTS)) AND ((@IsNull_QUANTITY = 1 AND [QUANTITY] IS NULL) OR ([QUANTITY] = @Original_QUANTITY)) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_INVOICE_IN_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="INVOICE_IN_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_INVOICE_IN_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="INVOICE_IN_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NSI_MATERIAL_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_MATERIAL_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_NSI_MATERIAL_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_MATERIAL_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_COMMENTS" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="COMMENTS" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_COMMENTS" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="COMMENTS" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_QUANTITY" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="QUANTITY" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_QUANTITY" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="QUANTITY" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>INSERT INTO INVOICE_IN_ITEM
                      (INVOICE_IN_ID, NSI_MATERIAL_ID, COMMENTS, QUANTITY, LAST_UPDATE, LAST_UPDATE_USER, PID)
VALUES     (@INVOICE_IN_ID,@NSI_MATERIAL_ID,@COMMENTS,@QUANTITY,@LAST_UPDATE,@LAST_UPDATE_USER,@PID); 
SELECT ID, INVOICE_IN_ID, NSI_MATERIAL_ID, COMMENTS, QUANTITY, LAST_UPDATE, LAST_UPDATE_USER FROM INVOICE_IN_ITEM WHERE (ID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="INVOICE_IN_ID" ColumnName="INVOICE_IN_ID" DataSourceName="FSO2.dbo.INVOICE_IN_ITEM" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@INVOICE_IN_ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="INVOICE_IN_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="NSI_MATERIAL_ID" ColumnName="NSI_MATERIAL_ID" DataSourceName="FSO2.dbo.INVOICE_IN_ITEM" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@NSI_MATERIAL_ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="NSI_MATERIAL_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="COMMENTS" ColumnName="COMMENTS" DataSourceName="FSO2.dbo.INVOICE_IN_ITEM" DataTypeServer="nvarchar(128)" DbType="String" Direction="Input" ParameterName="@COMMENTS" Precision="0" ProviderType="NVarChar" Scale="0" Size="128" SourceColumn="COMMENTS" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="QUANTITY" ColumnName="QUANTITY" DataSourceName="FSO2.dbo.INVOICE_IN_ITEM" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@QUANTITY" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="QUANTITY" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="LAST_UPDATE" ColumnName="LAST_UPDATE" DataSourceName="FSO2.dbo.INVOICE_IN_ITEM" DataTypeServer="datetime2" DbType="AnsiString" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="8" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="LAST_UPDATE_USER" ColumnName="LAST_UPDATE_USER" DataSourceName="FSO2.dbo.INVOICE_IN_ITEM" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="PID" ColumnName="PID" DataSourceName="FSO2.dbo.INVOICE_IN_ITEM" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT     INVOICE_IN_ITEM.ID, INVOICE_IN_ITEM.INVOICE_IN_ID, INVOICE_IN_ITEM.NSI_MATERIAL_ID, INVOICE_IN_ITEM.COMMENTS, 
                      INVOICE_IN_ITEM.QUANTITY, INVOICE_IN_ITEM.LAST_UPDATE, INVOICE_IN_ITEM.LAST_UPDATE_USER, 
                      NSI_MATERIAL.NAME AS NSI_MATERIAL_NAME, NSI_METER.SHORT_NAME AS NSI_METER_NAME, INVOICE_IN_ITEM.PID
FROM         INVOICE_IN_ITEM LEFT OUTER JOIN
                      NSI_MATERIAL ON INVOICE_IN_ITEM.NSI_MATERIAL_ID = NSI_MATERIAL.ID LEFT OUTER JOIN
                      NSI_METER ON NSI_MATERIAL.NSI_METER_ID = NSI_METER.ID</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>UPDATE    INVOICE_IN_ITEM
SET              INVOICE_IN_ID = @INVOICE_IN_ID, NSI_MATERIAL_ID = @NSI_MATERIAL_ID, COMMENTS = @COMMENTS, QUANTITY = @QUANTITY, 
                      LAST_UPDATE = @LAST_UPDATE, LAST_UPDATE_USER = @LAST_UPDATE_USER, PID = @PID
WHERE     (ID = @Original_ID) AND (@IsNull_INVOICE_IN_ID = 1 AND INVOICE_IN_ID IS NULL OR
                      INVOICE_IN_ID = @Original_INVOICE_IN_ID) AND (@IsNull_NSI_MATERIAL_ID = 1 AND NSI_MATERIAL_ID IS NULL OR
                      NSI_MATERIAL_ID = @Original_NSI_MATERIAL_ID) AND (@IsNull_COMMENTS = 1 AND COMMENTS IS NULL OR
                      COMMENTS = @Original_COMMENTS) AND (@IsNull_QUANTITY = 1 AND QUANTITY IS NULL OR
                      QUANTITY = @Original_QUANTITY) AND (@IsNull_LAST_UPDATE = 1 AND LAST_UPDATE IS NULL OR
                      LAST_UPDATE = @Original_LAST_UPDATE) AND (@IsNull_LAST_UPDATE_USER = 1 AND LAST_UPDATE_USER IS NULL OR
                      LAST_UPDATE_USER = @Original_LAST_UPDATE_USER) AND (@IsNull_PID = 1 AND PID IS NULL OR
                      PID = @Original_PID); 
SELECT ID, INVOICE_IN_ID, NSI_MATERIAL_ID, COMMENTS, QUANTITY, LAST_UPDATE, LAST_UPDATE_USER FROM INVOICE_IN_ITEM WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="INVOICE_IN_ID" ColumnName="INVOICE_IN_ID" DataSourceName="FSO2.dbo.INVOICE_IN_ITEM" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@INVOICE_IN_ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="INVOICE_IN_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="NSI_MATERIAL_ID" ColumnName="NSI_MATERIAL_ID" DataSourceName="FSO2.dbo.INVOICE_IN_ITEM" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@NSI_MATERIAL_ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="NSI_MATERIAL_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="COMMENTS" ColumnName="COMMENTS" DataSourceName="FSO2.dbo.INVOICE_IN_ITEM" DataTypeServer="nvarchar(128)" DbType="String" Direction="Input" ParameterName="@COMMENTS" Precision="0" ProviderType="NVarChar" Scale="0" Size="128" SourceColumn="COMMENTS" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="QUANTITY" ColumnName="QUANTITY" DataSourceName="FSO2.dbo.INVOICE_IN_ITEM" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@QUANTITY" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="QUANTITY" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="LAST_UPDATE" ColumnName="LAST_UPDATE" DataSourceName="FSO2.dbo.INVOICE_IN_ITEM" DataTypeServer="datetime2" DbType="AnsiString" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="8" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="LAST_UPDATE_USER" ColumnName="LAST_UPDATE_USER" DataSourceName="FSO2.dbo.INVOICE_IN_ITEM" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="PID" ColumnName="PID" DataSourceName="FSO2.dbo.INVOICE_IN_ITEM" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="Original_ID" ColumnName="ID" DataSourceName="FSO2.dbo.INVOICE_IN_ITEM" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="IsNull_INVOICE_IN_ID" ColumnName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IsNull_INVOICE_IN_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="INVOICE_IN_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="Original_INVOICE_IN_ID" ColumnName="INVOICE_IN_ID" DataSourceName="FSO2.dbo.INVOICE_IN_ITEM" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Original_INVOICE_IN_ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="INVOICE_IN_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="IsNull_NSI_MATERIAL_ID" ColumnName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IsNull_NSI_MATERIAL_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_MATERIAL_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="Original_NSI_MATERIAL_ID" ColumnName="NSI_MATERIAL_ID" DataSourceName="FSO2.dbo.INVOICE_IN_ITEM" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Original_NSI_MATERIAL_ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="NSI_MATERIAL_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="IsNull_COMMENTS" ColumnName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IsNull_COMMENTS" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="COMMENTS" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="Original_COMMENTS" ColumnName="COMMENTS" DataSourceName="FSO2.dbo.INVOICE_IN_ITEM" DataTypeServer="nvarchar(128)" DbType="String" Direction="Input" ParameterName="@Original_COMMENTS" Precision="0" ProviderType="NVarChar" Scale="0" Size="128" SourceColumn="COMMENTS" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="IsNull_QUANTITY" ColumnName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IsNull_QUANTITY" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="QUANTITY" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="Original_QUANTITY" ColumnName="QUANTITY" DataSourceName="FSO2.dbo.INVOICE_IN_ITEM" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Original_QUANTITY" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="QUANTITY" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="IsNull_LAST_UPDATE" ColumnName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="Original_LAST_UPDATE" ColumnName="LAST_UPDATE" DataSourceName="FSO2.dbo.INVOICE_IN_ITEM" DataTypeServer="datetime2" DbType="AnsiString" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="8" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="IsNull_LAST_UPDATE_USER" ColumnName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="Original_LAST_UPDATE_USER" ColumnName="LAST_UPDATE_USER" DataSourceName="FSO2.dbo.INVOICE_IN_ITEM" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="IsNull_PID" ColumnName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IsNull_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="Original_PID" ColumnName="PID" DataSourceName="FSO2.dbo.INVOICE_IN_ITEM" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Original_PID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="FSO2.dbo.INVOICE_IN_ITEM" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="INVOICE_IN_ID" DataSetColumn="INVOICE_IN_ID" />
              <Mapping SourceColumn="NSI_MATERIAL_ID" DataSetColumn="NSI_MATERIAL_ID" />
              <Mapping SourceColumn="COMMENTS" DataSetColumn="COMMENTS" />
              <Mapping SourceColumn="QUANTITY" DataSetColumn="QUANTITY" />
              <Mapping SourceColumn="LAST_UPDATE" DataSetColumn="LAST_UPDATE" />
              <Mapping SourceColumn="LAST_UPDATE_USER" DataSetColumn="LAST_UPDATE_USER" />
              <Mapping SourceColumn="NSI_MATERIAL_NAME" DataSetColumn="NSI_MATERIAL_NAME" />
              <Mapping SourceColumn="NSI_METER_NAME" DataSetColumn="NSI_METER_NAME" />
              <Mapping SourceColumn="PID" DataSetColumn="PID" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="FillByInvInId" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByInvInId" GeneratorSourceName="FillByInvInId" GetMethodModifier="Public" GetMethodName="GetDataByInvInId" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByInvInId" UserSourceName="FillByInvInId">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT     INVOICE_IN_ITEM.ID, INVOICE_IN_ITEM.INVOICE_IN_ID, INVOICE_IN_ITEM.NSI_MATERIAL_ID, INVOICE_IN_ITEM.COMMENTS, 
                      INVOICE_IN_ITEM.QUANTITY, INVOICE_IN_ITEM.LAST_UPDATE, INVOICE_IN_ITEM.LAST_UPDATE_USER, 
                      NSI_MATERIAL.NAME AS NSI_MATERIAL_NAME, NSI_METER.SHORT_NAME AS NSI_METER_NAME
FROM         INVOICE_IN_ITEM LEFT OUTER JOIN
                      NSI_MATERIAL ON INVOICE_IN_ITEM.NSI_MATERIAL_ID = NSI_MATERIAL.ID LEFT OUTER JOIN
                      NSI_METER ON NSI_MATERIAL.NSI_METER_ID = NSI_METER.ID
WHERE  INVOICE_IN_ITEM.INVOICE_IN_ID = @ID</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="ID" ColumnName="INVOICE_IN_ID" DataSourceName="FSO2.dbo.INVOICE_IN_ITEM" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="INVOICE_IN_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="INVOICE_OUTTableAdapter" GeneratorDataComponentClassName="INVOICE_OUTTableAdapter" Name="INVOICE_OUT" UserDataComponentName="INVOICE_OUTTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.INVOICE_OUT" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [INVOICE_OUT] WHERE (([ID] = @Original_ID) AND ([NUMBER] = @Original_NUMBER) AND ((@IsNull_DATE = 1 AND [DATE] IS NULL) OR ([DATE] = @Original_DATE)) AND ((@IsNull_SUM = 1 AND [SUM] IS NULL) OR ([SUM] = @Original_SUM)) AND ((@IsNull_STATE = 1 AND [STATE] IS NULL) OR ([STATE] = @Original_STATE)) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)) AND ((@IsNull_PID = 1 AND [PID] IS NULL) OR ([PID] = @Original_PID)) AND ((@IsNull_NSI_CURRENCY_ID = 1 AND [NSI_CURRENCY_ID] IS NULL) OR ([NSI_CURRENCY_ID] = @Original_NSI_CURRENCY_ID)) AND ((@IsNull_ADVANCE_PERCENT = 1 AND [ADVANCE_PERCENT] IS NULL) OR ([ADVANCE_PERCENT] = @Original_ADVANCE_PERCENT)) AND ((@IsNull_ADD_PAY_PERCENT = 1 AND [ADD_PAY_PERCENT] IS NULL) OR ([ADD_PAY_PERCENT] = @Original_ADD_PAY_PERCENT)) AND ((@IsNull_TYPE = 1 AND [TYPE] IS NULL) OR ([TYPE] = @Original_TYPE)) AND ((@IsNull_NSI_ORGANIZATION_ID = 1 AND [NSI_ORGANIZATION_ID] IS NULL) OR ([NSI_ORGANIZATION_ID] = @Original_NSI_ORGANIZATION_ID)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_NUMBER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_DATE" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="DATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SUM" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SUM" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_SUM" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="SUM" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_STATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="STATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_STATE" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="STATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NSI_CURRENCY_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_CURRENCY_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_NSI_CURRENCY_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_CURRENCY_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ADVANCE_PERCENT" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ADVANCE_PERCENT" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Original_ADVANCE_PERCENT" Precision="5" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="ADVANCE_PERCENT" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ADD_PAY_PERCENT" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ADD_PAY_PERCENT" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Original_ADD_PAY_PERCENT" Precision="5" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="ADD_PAY_PERCENT" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TYPE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TYPE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_TYPE" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="TYPE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NSI_ORGANIZATION_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_ORGANIZATION_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_NSI_ORGANIZATION_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_ORGANIZATION_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [INVOICE_OUT] ([NUMBER], [DATE], [SUM], [STATE], [DESCRIPTION], [LAST_UPDATE], [LAST_UPDATE_USER], [PID], [NSI_CURRENCY_ID], [ADVANCE_PERCENT], [ADD_PAY_PERCENT], [TYPE], [NSI_ORGANIZATION_ID]) VALUES (@NUMBER, @DATE, @SUM, @STATE, @DESCRIPTION, @LAST_UPDATE, @LAST_UPDATE_USER, @PID, @NSI_CURRENCY_ID, @ADVANCE_PERCENT, @ADD_PAY_PERCENT, @TYPE, @NSI_ORGANIZATION_ID);
SELECT ID, NUMBER, DATE, SUM, STATE, DESCRIPTION, LAST_UPDATE, LAST_UPDATE_USER, PID, NSI_CURRENCY_ID, ADVANCE_PERCENT, ADD_PAY_PERCENT, TYPE, NSI_ORGANIZATION_ID FROM INVOICE_OUT WHERE (ID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@NUMBER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@DATE" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="DATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@SUM" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="SUM" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@STATE" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="STATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@DESCRIPTION" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DESCRIPTION" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@NSI_CURRENCY_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_CURRENCY_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@ADVANCE_PERCENT" Precision="5" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="ADVANCE_PERCENT" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@ADD_PAY_PERCENT" Precision="5" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="ADD_PAY_PERCENT" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@TYPE" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="TYPE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@NSI_ORGANIZATION_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_ORGANIZATION_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        ID, NUMBER, DATE, SUM, STATE, DESCRIPTION, LAST_UPDATE, LAST_UPDATE_USER, PID, NSI_CURRENCY_ID, ADVANCE_PERCENT, ADD_PAY_PERCENT, TYPE, 
                         NSI_ORGANIZATION_ID
FROM            INVOICE_OUT</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [INVOICE_OUT] SET [NUMBER] = @NUMBER, [DATE] = @DATE, [SUM] = @SUM, [STATE] = @STATE, [DESCRIPTION] = @DESCRIPTION, [LAST_UPDATE] = @LAST_UPDATE, [LAST_UPDATE_USER] = @LAST_UPDATE_USER, [PID] = @PID, [NSI_CURRENCY_ID] = @NSI_CURRENCY_ID, [ADVANCE_PERCENT] = @ADVANCE_PERCENT, [ADD_PAY_PERCENT] = @ADD_PAY_PERCENT, [TYPE] = @TYPE, [NSI_ORGANIZATION_ID] = @NSI_ORGANIZATION_ID WHERE (([ID] = @Original_ID) AND ([NUMBER] = @Original_NUMBER) AND ((@IsNull_DATE = 1 AND [DATE] IS NULL) OR ([DATE] = @Original_DATE)) AND ((@IsNull_SUM = 1 AND [SUM] IS NULL) OR ([SUM] = @Original_SUM)) AND ((@IsNull_STATE = 1 AND [STATE] IS NULL) OR ([STATE] = @Original_STATE)) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)) AND ((@IsNull_PID = 1 AND [PID] IS NULL) OR ([PID] = @Original_PID)) AND ((@IsNull_NSI_CURRENCY_ID = 1 AND [NSI_CURRENCY_ID] IS NULL) OR ([NSI_CURRENCY_ID] = @Original_NSI_CURRENCY_ID)) AND ((@IsNull_ADVANCE_PERCENT = 1 AND [ADVANCE_PERCENT] IS NULL) OR ([ADVANCE_PERCENT] = @Original_ADVANCE_PERCENT)) AND ((@IsNull_ADD_PAY_PERCENT = 1 AND [ADD_PAY_PERCENT] IS NULL) OR ([ADD_PAY_PERCENT] = @Original_ADD_PAY_PERCENT)) AND ((@IsNull_TYPE = 1 AND [TYPE] IS NULL) OR ([TYPE] = @Original_TYPE)) AND ((@IsNull_NSI_ORGANIZATION_ID = 1 AND [NSI_ORGANIZATION_ID] IS NULL) OR ([NSI_ORGANIZATION_ID] = @Original_NSI_ORGANIZATION_ID)));
SELECT ID, NUMBER, DATE, SUM, STATE, DESCRIPTION, LAST_UPDATE, LAST_UPDATE_USER, PID, NSI_CURRENCY_ID, ADVANCE_PERCENT, ADD_PAY_PERCENT, TYPE, NSI_ORGANIZATION_ID FROM INVOICE_OUT WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@NUMBER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@DATE" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="DATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@SUM" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="SUM" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@STATE" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="STATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@DESCRIPTION" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DESCRIPTION" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@NSI_CURRENCY_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_CURRENCY_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@ADVANCE_PERCENT" Precision="5" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="ADVANCE_PERCENT" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@ADD_PAY_PERCENT" Precision="5" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="ADD_PAY_PERCENT" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@TYPE" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="TYPE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@NSI_ORGANIZATION_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_ORGANIZATION_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_NUMBER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_DATE" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="DATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SUM" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SUM" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_SUM" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="SUM" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_STATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="STATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_STATE" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="STATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NSI_CURRENCY_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_CURRENCY_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_NSI_CURRENCY_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_CURRENCY_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ADVANCE_PERCENT" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ADVANCE_PERCENT" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Original_ADVANCE_PERCENT" Precision="5" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="ADVANCE_PERCENT" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ADD_PAY_PERCENT" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ADD_PAY_PERCENT" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Original_ADD_PAY_PERCENT" Precision="5" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="ADD_PAY_PERCENT" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TYPE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TYPE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_TYPE" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="TYPE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NSI_ORGANIZATION_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_ORGANIZATION_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_NSI_ORGANIZATION_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_ORGANIZATION_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="FSO2.dbo.INVOICE_OUT" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="NUMBER" DataSetColumn="NUMBER" />
              <Mapping SourceColumn="DATE" DataSetColumn="DATE" />
              <Mapping SourceColumn="SUM" DataSetColumn="SUM" />
              <Mapping SourceColumn="STATE" DataSetColumn="STATE" />
              <Mapping SourceColumn="DESCRIPTION" DataSetColumn="DESCRIPTION" />
              <Mapping SourceColumn="LAST_UPDATE" DataSetColumn="LAST_UPDATE" />
              <Mapping SourceColumn="LAST_UPDATE_USER" DataSetColumn="LAST_UPDATE_USER" />
              <Mapping SourceColumn="PID" DataSetColumn="PID" />
              <Mapping SourceColumn="NSI_CURRENCY_ID" DataSetColumn="NSI_CURRENCY_ID" />
              <Mapping SourceColumn="ADVANCE_PERCENT" DataSetColumn="ADVANCE_PERCENT" />
              <Mapping SourceColumn="ADD_PAY_PERCENT" DataSetColumn="ADD_PAY_PERCENT" />
              <Mapping SourceColumn="TYPE" DataSetColumn="TYPE" />
              <Mapping SourceColumn="NSI_ORGANIZATION_ID" DataSetColumn="NSI_ORGANIZATION_ID" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.INVOICE_OUT" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByID" GeneratorSourceName="FillByID" GetMethodModifier="Public" GetMethodName="GetDataByID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByID" UserSourceName="FillByID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT ADD_PAY_PERCENT, ADVANCE_PERCENT, DATE, DESCRIPTION, ID, LAST_UPDATE, LAST_UPDATE_USER, NSI_CURRENCY_ID, NSI_ORGANIZATION_ID, NUMBER, PID, STATE, SUM, TYPE FROM INVOICE_OUT WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="FSO2.dbo.INVOICE_OUT" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.INVOICE_OUT" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByInvoiceOutItem" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByInvoiceOutItem" GeneratorSourceName="FillByInvoiceOutItem" GetMethodModifier="Public" GetMethodName="GetDataByInvoiceOutItem" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByInvoiceOutItem" UserSourceName="FillByInvoiceOutItem">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT ADD_PAY_PERCENT, ADVANCE_PERCENT, DATE, DESCRIPTION, ID, LAST_UPDATE, LAST_UPDATE_USER, NSI_CURRENCY_ID, NSI_ORGANIZATION_ID, NUMBER, PID, STATE, SUM, TYPE FROM INVOICE_OUT WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="FSO2.dbo.INVOICE_OUT" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="INVOICE_OUT_ITEMTableAdapter" GeneratorDataComponentClassName="INVOICE_OUT_ITEMTableAdapter" Name="INVOICE_OUT_ITEM" UserDataComponentName="INVOICE_OUT_ITEMTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.INVOICE_OUT_ITEM" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [INVOICE_OUT_ITEM] WHERE (([ID] = @Original_ID) AND ((@IsNull_INVOICE_OUT_ID = 1 AND [INVOICE_OUT_ID] IS NULL) OR ([INVOICE_OUT_ID] = @Original_INVOICE_OUT_ID)) AND ((@IsNull_PRODUCT_UNIT_ID = 1 AND [PRODUCT_UNIT_ID] IS NULL) OR ([PRODUCT_UNIT_ID] = @Original_PRODUCT_UNIT_ID)) AND ((@IsNull_SUM = 1 AND [SUM] IS NULL) OR ([SUM] = @Original_SUM)) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)) AND ((@IsNull_PID = 1 AND [PID] IS NULL) OR ([PID] = @Original_PID)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_INVOICE_OUT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="INVOICE_OUT_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_INVOICE_OUT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="INVOICE_OUT_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PRODUCT_UNIT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PRODUCT_UNIT_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PRODUCT_UNIT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PRODUCT_UNIT_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SUM" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SUM" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_SUM" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="SUM" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [INVOICE_OUT_ITEM] ([INVOICE_OUT_ID], [PRODUCT_UNIT_ID], [SUM], [LAST_UPDATE], [LAST_UPDATE_USER], [PID]) VALUES (@INVOICE_OUT_ID, @PRODUCT_UNIT_ID, @SUM, @LAST_UPDATE, @LAST_UPDATE_USER, @PID);
SELECT ID, INVOICE_OUT_ID, PRODUCT_UNIT_ID, SUM, LAST_UPDATE, LAST_UPDATE_USER, PID FROM INVOICE_OUT_ITEM WHERE (ID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@INVOICE_OUT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="INVOICE_OUT_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PRODUCT_UNIT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PRODUCT_UNIT_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@SUM" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="SUM" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT     ID, INVOICE_OUT_ID, PRODUCT_UNIT_ID, SUM, LAST_UPDATE, LAST_UPDATE_USER, PID
FROM         INVOICE_OUT_ITEM</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [INVOICE_OUT_ITEM] SET [INVOICE_OUT_ID] = @INVOICE_OUT_ID, [PRODUCT_UNIT_ID] = @PRODUCT_UNIT_ID, [SUM] = @SUM, [LAST_UPDATE] = @LAST_UPDATE, [LAST_UPDATE_USER] = @LAST_UPDATE_USER, [PID] = @PID WHERE (([ID] = @Original_ID) AND ((@IsNull_INVOICE_OUT_ID = 1 AND [INVOICE_OUT_ID] IS NULL) OR ([INVOICE_OUT_ID] = @Original_INVOICE_OUT_ID)) AND ((@IsNull_PRODUCT_UNIT_ID = 1 AND [PRODUCT_UNIT_ID] IS NULL) OR ([PRODUCT_UNIT_ID] = @Original_PRODUCT_UNIT_ID)) AND ((@IsNull_SUM = 1 AND [SUM] IS NULL) OR ([SUM] = @Original_SUM)) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)) AND ((@IsNull_PID = 1 AND [PID] IS NULL) OR ([PID] = @Original_PID)));
SELECT ID, INVOICE_OUT_ID, PRODUCT_UNIT_ID, SUM, LAST_UPDATE, LAST_UPDATE_USER, PID FROM INVOICE_OUT_ITEM WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@INVOICE_OUT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="INVOICE_OUT_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PRODUCT_UNIT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PRODUCT_UNIT_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@SUM" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="SUM" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_INVOICE_OUT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="INVOICE_OUT_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_INVOICE_OUT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="INVOICE_OUT_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PRODUCT_UNIT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PRODUCT_UNIT_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PRODUCT_UNIT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PRODUCT_UNIT_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SUM" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SUM" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_SUM" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="SUM" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="FSO2.dbo.INVOICE_OUT_ITEM" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="INVOICE_OUT_ID" DataSetColumn="INVOICE_OUT_ID" />
              <Mapping SourceColumn="PRODUCT_UNIT_ID" DataSetColumn="PRODUCT_UNIT_ID" />
              <Mapping SourceColumn="SUM" DataSetColumn="SUM" />
              <Mapping SourceColumn="LAST_UPDATE" DataSetColumn="LAST_UPDATE" />
              <Mapping SourceColumn="LAST_UPDATE_USER" DataSetColumn="LAST_UPDATE_USER" />
              <Mapping SourceColumn="PID" DataSetColumn="PID" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.INVOICE_OUT_ITEM" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByID" GeneratorSourceName="FillByID" GetMethodModifier="Public" GetMethodName="GetDataByID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByID" UserSourceName="FillByID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT     ID, INVOICE_OUT_ID, PRODUCT_UNIT_ID, SUM, LAST_UPDATE, LAST_UPDATE_USER, PID
FROM         INVOICE_OUT_ITEM
WHERE ID = @ID</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="FSO2.dbo.INVOICE_OUT_ITEM" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.INVOICE_OUT_ITEM" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByInvIdPuId" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByInvIdPuId" GeneratorSourceName="FillByInvIdPuId" GetMethodModifier="Public" GetMethodName="GetDataByInvIdPuId" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByInvIdPuId" UserSourceName="FillByInvIdPuId">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT     ID, INVOICE_OUT_ID, PRODUCT_UNIT_ID, SUM, LAST_UPDATE, LAST_UPDATE_USER, PID
FROM         INVOICE_OUT_ITEM
WHERE INVOICE_OUT_ID = @InvId AND PRODUCT_UNIT_ID = @PUId</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="InvId" ColumnName="INVOICE_OUT_ID" DataSourceName="FSO2.dbo.INVOICE_OUT_ITEM" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@InvId" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="INVOICE_OUT_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="PUId" ColumnName="PRODUCT_UNIT_ID" DataSourceName="FSO2.dbo.INVOICE_OUT_ITEM" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@PUId" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="PRODUCT_UNIT_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.INVOICE_OUT_ITEM" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByProductUnitId" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByProductUnitId" GeneratorSourceName="FillByProductUnitId" GetMethodModifier="Public" GetMethodName="GetDataByProductUnitId" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByProductUnitId" UserSourceName="FillByProductUnitId">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT     ID, INVOICE_OUT_ID, PRODUCT_UNIT_ID, SUM, LAST_UPDATE, LAST_UPDATE_USER, PID
FROM         INVOICE_OUT_ITEM
WHERE PRODUCT_UNIT_ID = @ID</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="ID" ColumnName="PRODUCT_UNIT_ID" DataSourceName="FSO2.dbo.INVOICE_OUT_ITEM" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="PRODUCT_UNIT_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.getInvSumByDate" DbObjectType="Function" GenerateShortCommands="true" GeneratorSourceName="getInvSumByDate" Modifier="Public" Name="getInvSumByDate" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="getInvSumByDate">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.getInvSumByDate</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="money" DbType="Currency" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="19" ProviderType="Money" Scale="4" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@PUId" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="date" DbType="Date" Direction="Input" ParameterName="@InvDate" Precision="10" ProviderType="Date" Scale="0" Size="3" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="NSI_CURRENCYTableAdapter" GeneratorDataComponentClassName="NSI_CURRENCYTableAdapter" Name="NSI_CURRENCY" UserDataComponentName="NSI_CURRENCYTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.NSI_CURRENCY" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[NSI_CURRENCY] WHERE (([ID] = @Original_ID) AND ((@IsNull_CODE = 1 AND [CODE] IS NULL) OR ([CODE] = @Original_CODE)) AND ((@IsNull_SHORT_NAME = 1 AND [SHORT_NAME] IS NULL) OR ([SHORT_NAME] = @Original_SHORT_NAME)) AND ((@IsNull_FULL_NAME = 1 AND [FULL_NAME] IS NULL) OR ([FULL_NAME] = @Original_FULL_NAME)) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CODE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CODE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Original_CODE" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="CODE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SHORT_NAME" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SHORT_NAME" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_SHORT_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="SHORT_NAME" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_FULL_NAME" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="FULL_NAME" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_FULL_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FULL_NAME" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[NSI_CURRENCY] ([CODE], [SHORT_NAME], [FULL_NAME], [LAST_UPDATE], [LAST_UPDATE_USER]) VALUES (@CODE, @SHORT_NAME, @FULL_NAME, @LAST_UPDATE, @LAST_UPDATE_USER);
SELECT ID, CODE, SHORT_NAME, FULL_NAME, LAST_UPDATE, LAST_UPDATE_USER FROM NSI_CURRENCY WHERE (ID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@CODE" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="CODE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@SHORT_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="SHORT_NAME" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@FULL_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FULL_NAME" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT ID, CODE, SHORT_NAME, FULL_NAME, LAST_UPDATE, LAST_UPDATE_USER FROM dbo.NSI_CURRENCY</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[NSI_CURRENCY] SET [CODE] = @CODE, [SHORT_NAME] = @SHORT_NAME, [FULL_NAME] = @FULL_NAME, [LAST_UPDATE] = @LAST_UPDATE, [LAST_UPDATE_USER] = @LAST_UPDATE_USER WHERE (([ID] = @Original_ID) AND ((@IsNull_CODE = 1 AND [CODE] IS NULL) OR ([CODE] = @Original_CODE)) AND ((@IsNull_SHORT_NAME = 1 AND [SHORT_NAME] IS NULL) OR ([SHORT_NAME] = @Original_SHORT_NAME)) AND ((@IsNull_FULL_NAME = 1 AND [FULL_NAME] IS NULL) OR ([FULL_NAME] = @Original_FULL_NAME)) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)));
SELECT ID, CODE, SHORT_NAME, FULL_NAME, LAST_UPDATE, LAST_UPDATE_USER FROM NSI_CURRENCY WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@CODE" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="CODE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@SHORT_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="SHORT_NAME" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@FULL_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FULL_NAME" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CODE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CODE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Original_CODE" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="CODE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SHORT_NAME" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SHORT_NAME" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_SHORT_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="SHORT_NAME" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_FULL_NAME" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="FULL_NAME" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_FULL_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FULL_NAME" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="CODE" DataSetColumn="CODE" />
              <Mapping SourceColumn="SHORT_NAME" DataSetColumn="SHORT_NAME" />
              <Mapping SourceColumn="FULL_NAME" DataSetColumn="FULL_NAME" />
              <Mapping SourceColumn="LAST_UPDATE" DataSetColumn="LAST_UPDATE" />
              <Mapping SourceColumn="LAST_UPDATE_USER" DataSetColumn="LAST_UPDATE_USER" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.HasLinkCurrency" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="HasLinkCurrency" Modifier="Public" Name="HasLinkCurrency" QueryType="Scalar" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="HasLinkCurrency">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.HasLinkCurrency</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="NSI_EXCHANGE_RATETableAdapter" GeneratorDataComponentClassName="NSI_EXCHANGE_RATETableAdapter" Name="NSI_EXCHANGE_RATE" UserDataComponentName="NSI_EXCHANGE_RATETableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.NSI_EXCHANGE_RATE" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[NSI_EXCHANGE_RATE] WHERE (([ID] = @Original_ID) AND ((@IsNull_NSI_CURRENCY_ID = 1 AND [NSI_CURRENCY_ID] IS NULL) OR ([NSI_CURRENCY_ID] = @Original_NSI_CURRENCY_ID)) AND ((@IsNull_DATE = 1 AND [DATE] IS NULL) OR ([DATE] = @Original_DATE)) AND ((@IsNull_RATE = 1 AND [RATE] IS NULL) OR ([RATE] = @Original_RATE)) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NSI_CURRENCY_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_CURRENCY_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_NSI_CURRENCY_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_CURRENCY_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_DATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="DATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_RATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="RATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_RATE" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="RATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[NSI_EXCHANGE_RATE] ([NSI_CURRENCY_ID], [DATE], [RATE], [LAST_UPDATE], [LAST_UPDATE_USER]) VALUES (@NSI_CURRENCY_ID, @DATE, @RATE, @LAST_UPDATE, @LAST_UPDATE_USER);
SELECT ID, NSI_CURRENCY_ID, DATE, RATE, LAST_UPDATE, LAST_UPDATE_USER FROM NSI_EXCHANGE_RATE WHERE (ID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@NSI_CURRENCY_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_CURRENCY_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@DATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="DATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@RATE" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="RATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT ID, NSI_CURRENCY_ID, DATE, RATE, LAST_UPDATE, LAST_UPDATE_USER FROM dbo.NSI_EXCHANGE_RATE</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[NSI_EXCHANGE_RATE] SET [NSI_CURRENCY_ID] = @NSI_CURRENCY_ID, [DATE] = @DATE, [RATE] = @RATE, [LAST_UPDATE] = @LAST_UPDATE, [LAST_UPDATE_USER] = @LAST_UPDATE_USER WHERE (([ID] = @Original_ID) AND ((@IsNull_NSI_CURRENCY_ID = 1 AND [NSI_CURRENCY_ID] IS NULL) OR ([NSI_CURRENCY_ID] = @Original_NSI_CURRENCY_ID)) AND ((@IsNull_DATE = 1 AND [DATE] IS NULL) OR ([DATE] = @Original_DATE)) AND ((@IsNull_RATE = 1 AND [RATE] IS NULL) OR ([RATE] = @Original_RATE)) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)));
SELECT ID, NSI_CURRENCY_ID, DATE, RATE, LAST_UPDATE, LAST_UPDATE_USER FROM NSI_EXCHANGE_RATE WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@NSI_CURRENCY_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_CURRENCY_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@DATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="DATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@RATE" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="RATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NSI_CURRENCY_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_CURRENCY_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_NSI_CURRENCY_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_CURRENCY_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_DATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="DATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_RATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="RATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_RATE" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="RATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="NSI_CURRENCY_ID" DataSetColumn="NSI_CURRENCY_ID" />
              <Mapping SourceColumn="DATE" DataSetColumn="DATE" />
              <Mapping SourceColumn="RATE" DataSetColumn="RATE" />
              <Mapping SourceColumn="LAST_UPDATE" DataSetColumn="LAST_UPDATE" />
              <Mapping SourceColumn="LAST_UPDATE_USER" DataSetColumn="LAST_UPDATE_USER" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.NSI_EXCHANGE_RATE" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByID_DATE" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByID_DATE" GeneratorSourceName="FillByID_DATE" GetMethodModifier="Public" GetMethodName="GetDataByID_DATE" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByID_DATE" UserSourceName="FillByID_DATE">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT ID, NSI_CURRENCY_ID, DATE, RATE, LAST_UPDATE, LAST_UPDATE_USER FROM dbo.NSI_EXCHANGE_RATE WHERE NSI_CURRENCY_ID = @id AND DATE = @date</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="id" ColumnName="NSI_CURRENCY_ID" DataSourceName="FSO2.dbo.NSI_EXCHANGE_RATE" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@id" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="NSI_CURRENCY_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="date" ColumnName="DATE" DataSourceName="FSO2.dbo.NSI_EXCHANGE_RATE" DataTypeServer="datetime2" DbType="AnsiString" Direction="Input" ParameterName="@date" Precision="0" ProviderType="DateTime2" Scale="0" Size="8" SourceColumn="DATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.GetCurId" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="getCurID" Modifier="Public" Name="getCurID" QueryType="Scalar" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="getCurID">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.GetCurId</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="varchar" DbType="AnsiString" Direction="Input" ParameterName="@currencyName" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.getRate" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="getRate" Modifier="Public" Name="getRate" QueryType="Scalar" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="getRate">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.getRate</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="varchar" DbType="AnsiString" Direction="Input" ParameterName="@CurrencyName" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@date" Precision="23" ProviderType="DateTime" Scale="3" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="NSI_EXPENSE_ITEMTableAdapter" GeneratorDataComponentClassName="NSI_EXPENSE_ITEMTableAdapter" Name="NSI_EXPENSE_ITEM" UserDataComponentName="NSI_EXPENSE_ITEMTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.NSI_EXPENSE_ITEM" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[NSI_EXPENSE_ITEM] WHERE (([ID] = @Original_ID) AND ((@IsNull_NAME = 1 AND [NAME] IS NULL) OR ([NAME] = @Original_NAME)) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NAME" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NAME" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NAME" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[NSI_EXPENSE_ITEM] ([NAME], [LAST_UPDATE], [LAST_UPDATE_USER]) VALUES (@NAME, @LAST_UPDATE, @LAST_UPDATE_USER);
SELECT ID, NAME, LAST_UPDATE, LAST_UPDATE_USER FROM NSI_EXPENSE_ITEM WHERE (ID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NAME" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT ID, NAME, LAST_UPDATE, LAST_UPDATE_USER FROM dbo.NSI_EXPENSE_ITEM</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[NSI_EXPENSE_ITEM] SET [NAME] = @NAME, [LAST_UPDATE] = @LAST_UPDATE, [LAST_UPDATE_USER] = @LAST_UPDATE_USER WHERE (([ID] = @Original_ID) AND ((@IsNull_NAME = 1 AND [NAME] IS NULL) OR ([NAME] = @Original_NAME)) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)));
SELECT ID, NAME, LAST_UPDATE, LAST_UPDATE_USER FROM NSI_EXPENSE_ITEM WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NAME" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NAME" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NAME" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NAME" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="NAME" DataSetColumn="NAME" />
              <Mapping SourceColumn="LAST_UPDATE" DataSetColumn="LAST_UPDATE" />
              <Mapping SourceColumn="LAST_UPDATE_USER" DataSetColumn="LAST_UPDATE_USER" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.HasLinkExpenseItem" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="HasLinkExpenseItem" Modifier="Public" Name="HasLinkExpenseItem" QueryType="Scalar" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="HasLinkExpenseItem">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.HasLinkExpenseItem</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="NSI_FINANCE_RESOURCETableAdapter" GeneratorDataComponentClassName="NSI_FINANCE_RESOURCETableAdapter" Name="NSI_FINANCE_RESOURCE" UserDataComponentName="NSI_FINANCE_RESOURCETableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.NSI_FINANCE_RESOURCE" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[NSI_FINANCE_RESOURCE] WHERE (([ID] = @Original_ID) AND ((@IsNull_NAME = 1 AND [NAME] IS NULL) OR ([NAME] = @Original_NAME)) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NAME" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NAME" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NAME" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[NSI_FINANCE_RESOURCE] ([NAME], [LAST_UPDATE], [LAST_UPDATE_USER]) VALUES (@NAME, @LAST_UPDATE, @LAST_UPDATE_USER);
SELECT ID, NAME, LAST_UPDATE, LAST_UPDATE_USER FROM NSI_FINANCE_RESOURCE WHERE (ID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NAME" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT ID, NAME, LAST_UPDATE, LAST_UPDATE_USER FROM dbo.NSI_FINANCE_RESOURCE</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[NSI_FINANCE_RESOURCE] SET [NAME] = @NAME, [LAST_UPDATE] = @LAST_UPDATE, [LAST_UPDATE_USER] = @LAST_UPDATE_USER WHERE (([ID] = @Original_ID) AND ((@IsNull_NAME = 1 AND [NAME] IS NULL) OR ([NAME] = @Original_NAME)) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)));
SELECT ID, NAME, LAST_UPDATE, LAST_UPDATE_USER FROM NSI_FINANCE_RESOURCE WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NAME" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NAME" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NAME" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NAME" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="NAME" DataSetColumn="NAME" />
              <Mapping SourceColumn="LAST_UPDATE" DataSetColumn="LAST_UPDATE" />
              <Mapping SourceColumn="LAST_UPDATE_USER" DataSetColumn="LAST_UPDATE_USER" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.HasLinkFinRes" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="HasLinkFinRes" Modifier="Public" Name="HasLinkFinRes" QueryType="Scalar" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="HasLinkFinRes">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.HasLinkFinRes</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="NSI_MATERIALTableAdapter" GeneratorDataComponentClassName="NSI_MATERIALTableAdapter" Name="NSI_MATERIAL" UserDataComponentName="NSI_MATERIALTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[NSI_MATERIAL] WHERE (([ID] = @Original_ID) AND ((@IsNull_NUMBER = 1 AND [NUMBER] IS NULL) OR ([NUMBER] = @Original_NUMBER)) AND ((@IsNull_NAME = 1 AND [NAME] IS NULL) OR ([NAME] = @Original_NAME)) AND ((@IsNull_NSI_METER_ID = 1 AND [NSI_METER_ID] IS NULL) OR ([NSI_METER_ID] = @Original_NSI_METER_ID)) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NUMBER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_NUMBER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NAME" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NAME" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NAME" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NSI_METER_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_METER_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_NSI_METER_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_METER_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[NSI_MATERIAL] ([NUMBER], [NAME], [NSI_METER_ID], [LAST_UPDATE], [LAST_UPDATE_USER]) VALUES (@NUMBER, @NAME, @NSI_METER_ID, @LAST_UPDATE, @LAST_UPDATE_USER);
SELECT ID, NUMBER, NAME, NSI_METER_ID, LAST_UPDATE, LAST_UPDATE_USER FROM NSI_MATERIAL WHERE (ID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@NUMBER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NAME" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@NSI_METER_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_METER_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT     NSI_MATERIAL.ID, NSI_MATERIAL.NUMBER, NSI_MATERIAL.NAME, NSI_MATERIAL.NSI_METER_ID, NSI_MATERIAL.LAST_UPDATE, 
                      NSI_MATERIAL.LAST_UPDATE_USER, NSI_METER.SHORT_NAME AS NSI_METER_NAME
FROM         NSI_MATERIAL LEFT OUTER JOIN
                      NSI_METER ON NSI_MATERIAL.NSI_METER_ID = NSI_METER.ID</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[NSI_MATERIAL] SET [NUMBER] = @NUMBER, [NAME] = @NAME, [NSI_METER_ID] = @NSI_METER_ID, [LAST_UPDATE] = @LAST_UPDATE, [LAST_UPDATE_USER] = @LAST_UPDATE_USER WHERE (([ID] = @Original_ID) AND ((@IsNull_NUMBER = 1 AND [NUMBER] IS NULL) OR ([NUMBER] = @Original_NUMBER)) AND ((@IsNull_NAME = 1 AND [NAME] IS NULL) OR ([NAME] = @Original_NAME)) AND ((@IsNull_NSI_METER_ID = 1 AND [NSI_METER_ID] IS NULL) OR ([NSI_METER_ID] = @Original_NSI_METER_ID)) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)));
SELECT ID, NUMBER, NAME, NSI_METER_ID, LAST_UPDATE, LAST_UPDATE_USER FROM NSI_MATERIAL WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@NUMBER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NAME" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@NSI_METER_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_METER_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NUMBER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_NUMBER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NAME" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NAME" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NAME" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NSI_METER_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_METER_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_NSI_METER_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_METER_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="NUMBER" DataSetColumn="NUMBER" />
              <Mapping SourceColumn="NAME" DataSetColumn="NAME" />
              <Mapping SourceColumn="NSI_METER_ID" DataSetColumn="NSI_METER_ID" />
              <Mapping SourceColumn="LAST_UPDATE" DataSetColumn="LAST_UPDATE" />
              <Mapping SourceColumn="LAST_UPDATE_USER" DataSetColumn="LAST_UPDATE_USER" />
              <Mapping SourceColumn="NSI_METER_NAME" DataSetColumn="NSI_METER_NAME" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.HasLinkMaterial" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="HasLinkMaterial" Modifier="Public" Name="HasLinkMaterial" QueryType="Scalar" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="HasLinkMaterial">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.HasLinkMaterial</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="NSI_METERTableAdapter" GeneratorDataComponentClassName="NSI_METERTableAdapter" Name="NSI_METER" UserDataComponentName="NSI_METERTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.NSI_METER" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[NSI_METER] WHERE (([ID] = @Original_ID) AND ((@IsNull_SHORT_NAME = 1 AND [SHORT_NAME] IS NULL) OR ([SHORT_NAME] = @Original_SHORT_NAME)) AND ((@IsNull_FULL_NAME = 1 AND [FULL_NAME] IS NULL) OR ([FULL_NAME] = @Original_FULL_NAME)) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SHORT_NAME" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SHORT_NAME" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_SHORT_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="SHORT_NAME" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_FULL_NAME" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="FULL_NAME" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_FULL_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FULL_NAME" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[NSI_METER] ([SHORT_NAME], [FULL_NAME], [LAST_UPDATE], [LAST_UPDATE_USER]) VALUES (@SHORT_NAME, @FULL_NAME, @LAST_UPDATE, @LAST_UPDATE_USER);
SELECT ID, SHORT_NAME, FULL_NAME, LAST_UPDATE, LAST_UPDATE_USER FROM NSI_METER WHERE (ID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@SHORT_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="SHORT_NAME" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@FULL_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FULL_NAME" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT ID, SHORT_NAME, FULL_NAME, LAST_UPDATE, LAST_UPDATE_USER FROM dbo.NSI_METER</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[NSI_METER] SET [SHORT_NAME] = @SHORT_NAME, [FULL_NAME] = @FULL_NAME, [LAST_UPDATE] = @LAST_UPDATE, [LAST_UPDATE_USER] = @LAST_UPDATE_USER WHERE (([ID] = @Original_ID) AND ((@IsNull_SHORT_NAME = 1 AND [SHORT_NAME] IS NULL) OR ([SHORT_NAME] = @Original_SHORT_NAME)) AND ((@IsNull_FULL_NAME = 1 AND [FULL_NAME] IS NULL) OR ([FULL_NAME] = @Original_FULL_NAME)) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)));
SELECT ID, SHORT_NAME, FULL_NAME, LAST_UPDATE, LAST_UPDATE_USER FROM NSI_METER WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@SHORT_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="SHORT_NAME" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@FULL_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FULL_NAME" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SHORT_NAME" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SHORT_NAME" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_SHORT_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="SHORT_NAME" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_FULL_NAME" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="FULL_NAME" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_FULL_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FULL_NAME" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="SHORT_NAME" DataSetColumn="SHORT_NAME" />
              <Mapping SourceColumn="FULL_NAME" DataSetColumn="FULL_NAME" />
              <Mapping SourceColumn="LAST_UPDATE" DataSetColumn="LAST_UPDATE" />
              <Mapping SourceColumn="LAST_UPDATE_USER" DataSetColumn="LAST_UPDATE_USER" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.HasLinkMeter" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="HasLinkMeter" Modifier="Public" Name="HasLinkMeter" QueryType="Scalar" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="HasLinkMeter">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.HasLinkMeter</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="NSI_ORGANIZATIONTableAdapter" GeneratorDataComponentClassName="NSI_ORGANIZATIONTableAdapter" Name="NSI_ORGANIZATION" UserDataComponentName="NSI_ORGANIZATIONTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.NSI_ORGANIZATION" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[NSI_ORGANIZATION] WHERE (([ID] = @Original_ID) AND ((@IsNull_SHORT_NAME = 1 AND [SHORT_NAME] IS NULL) OR ([SHORT_NAME] = @Original_SHORT_NAME)) AND ((@IsNull_INN = 1 AND [INN] IS NULL) OR ([INN] = @Original_INN)) AND ((@IsNull_KPP = 1 AND [KPP] IS NULL) OR ([KPP] = @Original_KPP)) AND ((@IsNull_OKPO = 1 AND [OKPO] IS NULL) OR ([OKPO] = @Original_OKPO)) AND ((@IsNull_COUNTRY = 1 AND [COUNTRY] IS NULL) OR ([COUNTRY] = @Original_COUNTRY)) AND ((@IsNull_CITY = 1 AND [CITY] IS NULL) OR ([CITY] = @Original_CITY)) AND ((@IsNull_POST_INDEX = 1 AND [POST_INDEX] IS NULL) OR ([POST_INDEX] = @Original_POST_INDEX)) AND ((@IsNull_CONTACT = 1 AND [CONTACT] IS NULL) OR ([CONTACT] = @Original_CONTACT)) AND ((@IsNull_PHONE = 1 AND [PHONE] IS NULL) OR ([PHONE] = @Original_PHONE)) AND ((@IsNull_FAX = 1 AND [FAX] IS NULL) OR ([FAX] = @Original_FAX)) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SHORT_NAME" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SHORT_NAME" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_SHORT_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="SHORT_NAME" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_INN" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="INN" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_INN" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="INN" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_KPP" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="KPP" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_KPP" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="KPP" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OKPO" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OKPO" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_OKPO" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="OKPO" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_COUNTRY" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="COUNTRY" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_COUNTRY" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="COUNTRY" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CITY" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CITY" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CITY" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CITY" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_POST_INDEX" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="POST_INDEX" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_POST_INDEX" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="POST_INDEX" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CONTACT" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CONTACT" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CONTACT" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CONTACT" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PHONE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PHONE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_PHONE" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PHONE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_FAX" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="FAX" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_FAX" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FAX" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[NSI_ORGANIZATION] ([SHORT_NAME], [FULL_NAME], [INN], [KPP], [OKPO], [FULL_ADDR], [ADDR_1], [ADDR_2], [ADDR_3], [ADDR_4], [COUNTRY], [CITY], [POST_INDEX], [CONTACT], [PHONE], [FAX], [LAST_UPDATE], [LAST_UPDATE_USER]) VALUES (@SHORT_NAME, @FULL_NAME, @INN, @KPP, @OKPO, @FULL_ADDR, @ADDR_1, @ADDR_2, @ADDR_3, @ADDR_4, @COUNTRY, @CITY, @POST_INDEX, @CONTACT, @PHONE, @FAX, @LAST_UPDATE, @LAST_UPDATE_USER);
SELECT ID, SHORT_NAME, FULL_NAME, INN, KPP, OKPO, FULL_ADDR, ADDR_1, ADDR_2, ADDR_3, ADDR_4, COUNTRY, CITY, POST_INDEX, CONTACT, PHONE, FAX, LAST_UPDATE, LAST_UPDATE_USER FROM NSI_ORGANIZATION WHERE (ID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@SHORT_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="SHORT_NAME" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@FULL_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FULL_NAME" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@INN" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="INN" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@KPP" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="KPP" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@OKPO" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="OKPO" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@FULL_ADDR" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FULL_ADDR" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ADDR_1" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ADDR_1" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ADDR_2" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ADDR_2" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ADDR_3" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ADDR_3" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ADDR_4" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ADDR_4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@COUNTRY" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="COUNTRY" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CITY" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CITY" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@POST_INDEX" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="POST_INDEX" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CONTACT" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CONTACT" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@PHONE" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PHONE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@FAX" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FAX" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT ID, SHORT_NAME, FULL_NAME, INN, KPP, OKPO, FULL_ADDR, ADDR_1, ADDR_2, ADDR_3, ADDR_4, COUNTRY, CITY, POST_INDEX, CONTACT, PHONE, FAX, LAST_UPDATE, LAST_UPDATE_USER FROM dbo.NSI_ORGANIZATION</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[NSI_ORGANIZATION] SET [SHORT_NAME] = @SHORT_NAME, [FULL_NAME] = @FULL_NAME, [INN] = @INN, [KPP] = @KPP, [OKPO] = @OKPO, [FULL_ADDR] = @FULL_ADDR, [ADDR_1] = @ADDR_1, [ADDR_2] = @ADDR_2, [ADDR_3] = @ADDR_3, [ADDR_4] = @ADDR_4, [COUNTRY] = @COUNTRY, [CITY] = @CITY, [POST_INDEX] = @POST_INDEX, [CONTACT] = @CONTACT, [PHONE] = @PHONE, [FAX] = @FAX, [LAST_UPDATE] = @LAST_UPDATE, [LAST_UPDATE_USER] = @LAST_UPDATE_USER WHERE (([ID] = @Original_ID) AND ((@IsNull_SHORT_NAME = 1 AND [SHORT_NAME] IS NULL) OR ([SHORT_NAME] = @Original_SHORT_NAME)) AND ((@IsNull_INN = 1 AND [INN] IS NULL) OR ([INN] = @Original_INN)) AND ((@IsNull_KPP = 1 AND [KPP] IS NULL) OR ([KPP] = @Original_KPP)) AND ((@IsNull_OKPO = 1 AND [OKPO] IS NULL) OR ([OKPO] = @Original_OKPO)) AND ((@IsNull_COUNTRY = 1 AND [COUNTRY] IS NULL) OR ([COUNTRY] = @Original_COUNTRY)) AND ((@IsNull_CITY = 1 AND [CITY] IS NULL) OR ([CITY] = @Original_CITY)) AND ((@IsNull_POST_INDEX = 1 AND [POST_INDEX] IS NULL) OR ([POST_INDEX] = @Original_POST_INDEX)) AND ((@IsNull_CONTACT = 1 AND [CONTACT] IS NULL) OR ([CONTACT] = @Original_CONTACT)) AND ((@IsNull_PHONE = 1 AND [PHONE] IS NULL) OR ([PHONE] = @Original_PHONE)) AND ((@IsNull_FAX = 1 AND [FAX] IS NULL) OR ([FAX] = @Original_FAX)) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)));
SELECT ID, SHORT_NAME, FULL_NAME, INN, KPP, OKPO, FULL_ADDR, ADDR_1, ADDR_2, ADDR_3, ADDR_4, COUNTRY, CITY, POST_INDEX, CONTACT, PHONE, FAX, LAST_UPDATE, LAST_UPDATE_USER FROM NSI_ORGANIZATION WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@SHORT_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="SHORT_NAME" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@FULL_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FULL_NAME" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@INN" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="INN" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@KPP" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="KPP" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@OKPO" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="OKPO" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@FULL_ADDR" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FULL_ADDR" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ADDR_1" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ADDR_1" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ADDR_2" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ADDR_2" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ADDR_3" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ADDR_3" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ADDR_4" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ADDR_4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@COUNTRY" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="COUNTRY" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CITY" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CITY" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@POST_INDEX" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="POST_INDEX" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CONTACT" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CONTACT" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@PHONE" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PHONE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@FAX" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FAX" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SHORT_NAME" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SHORT_NAME" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_SHORT_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="SHORT_NAME" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_INN" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="INN" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_INN" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="INN" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_KPP" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="KPP" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_KPP" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="KPP" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_OKPO" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OKPO" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_OKPO" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="OKPO" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_COUNTRY" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="COUNTRY" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_COUNTRY" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="COUNTRY" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CITY" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CITY" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CITY" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CITY" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_POST_INDEX" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="POST_INDEX" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_POST_INDEX" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="POST_INDEX" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CONTACT" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CONTACT" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CONTACT" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CONTACT" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PHONE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PHONE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_PHONE" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PHONE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_FAX" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="FAX" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_FAX" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FAX" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="SHORT_NAME" DataSetColumn="SHORT_NAME" />
              <Mapping SourceColumn="FULL_NAME" DataSetColumn="FULL_NAME" />
              <Mapping SourceColumn="INN" DataSetColumn="INN" />
              <Mapping SourceColumn="KPP" DataSetColumn="KPP" />
              <Mapping SourceColumn="OKPO" DataSetColumn="OKPO" />
              <Mapping SourceColumn="FULL_ADDR" DataSetColumn="FULL_ADDR" />
              <Mapping SourceColumn="ADDR_1" DataSetColumn="ADDR_1" />
              <Mapping SourceColumn="ADDR_2" DataSetColumn="ADDR_2" />
              <Mapping SourceColumn="ADDR_3" DataSetColumn="ADDR_3" />
              <Mapping SourceColumn="ADDR_4" DataSetColumn="ADDR_4" />
              <Mapping SourceColumn="COUNTRY" DataSetColumn="COUNTRY" />
              <Mapping SourceColumn="CITY" DataSetColumn="CITY" />
              <Mapping SourceColumn="POST_INDEX" DataSetColumn="POST_INDEX" />
              <Mapping SourceColumn="CONTACT" DataSetColumn="CONTACT" />
              <Mapping SourceColumn="PHONE" DataSetColumn="PHONE" />
              <Mapping SourceColumn="FAX" DataSetColumn="FAX" />
              <Mapping SourceColumn="LAST_UPDATE" DataSetColumn="LAST_UPDATE" />
              <Mapping SourceColumn="LAST_UPDATE_USER" DataSetColumn="LAST_UPDATE_USER" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.NSI_ORGANIZATION" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillById" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataById" GeneratorSourceName="FillById" GetMethodModifier="Public" GetMethodName="GetDataById" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataById" UserSourceName="FillById">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT ID, SHORT_NAME, FULL_NAME, INN, KPP, OKPO, FULL_ADDR, ADDR_1, ADDR_2, ADDR_3, ADDR_4, COUNTRY, CITY, POST_INDEX, CONTACT, PHONE, FAX, LAST_UPDATE, LAST_UPDATE_USER FROM dbo.NSI_ORGANIZATION WHERE ID=@ID</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="FSO2.dbo.NSI_ORGANIZATION" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.HasLinkOrganization" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="HasLinkOrganization" Modifier="Public" Name="HasLinkOrganization" QueryType="Scalar" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="HasLinkOrganization">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.HasLinkOrganization</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="NSI_PAY_DIRECTTableAdapter" GeneratorDataComponentClassName="NSI_PAY_DIRECTTableAdapter" Name="NSI_PAY_DIRECT" UserDataComponentName="NSI_PAY_DIRECTTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.NSI_PAY_DIRECT" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[NSI_PAY_DIRECT] WHERE (([ID] = @Original_ID) AND ((@IsNull_NAME = 1 AND [NAME] IS NULL) OR ([NAME] = @Original_NAME)) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NAME" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NAME" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NAME" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[NSI_PAY_DIRECT] ([NAME], [LAST_UPDATE], [LAST_UPDATE_USER]) VALUES (@NAME, @LAST_UPDATE, @LAST_UPDATE_USER);
SELECT ID, NAME, LAST_UPDATE, LAST_UPDATE_USER FROM NSI_PAY_DIRECT WHERE (ID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NAME" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT ID, NAME, LAST_UPDATE, LAST_UPDATE_USER FROM dbo.NSI_PAY_DIRECT</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[NSI_PAY_DIRECT] SET [NAME] = @NAME, [LAST_UPDATE] = @LAST_UPDATE, [LAST_UPDATE_USER] = @LAST_UPDATE_USER WHERE (([ID] = @Original_ID) AND ((@IsNull_NAME = 1 AND [NAME] IS NULL) OR ([NAME] = @Original_NAME)) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)));
SELECT ID, NAME, LAST_UPDATE, LAST_UPDATE_USER FROM NSI_PAY_DIRECT WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NAME" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NAME" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NAME" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NAME" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="NAME" DataSetColumn="NAME" />
              <Mapping SourceColumn="LAST_UPDATE" DataSetColumn="LAST_UPDATE" />
              <Mapping SourceColumn="LAST_UPDATE_USER" DataSetColumn="LAST_UPDATE_USER" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.HasLinkPayDirect" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="HasLinkPayDirect" Modifier="Public" Name="HasLinkPayDirect" QueryType="Scalar" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="HasLinkPayDirect">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.HasLinkPayDirect</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="NSI_PRODUCTTableAdapter" GeneratorDataComponentClassName="NSI_PRODUCTTableAdapter" Name="NSI_PRODUCT" UserDataComponentName="NSI_PRODUCTTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[NSI_PRODUCT] WHERE (([ID] = @Original_ID) AND ((@IsNull_CODE = 1 AND [CODE] IS NULL) OR ([CODE] = @Original_CODE)) AND ((@IsNull_SHORT_NAME = 1 AND [SHORT_NAME] IS NULL) OR ([SHORT_NAME] = @Original_SHORT_NAME)) AND ((@IsNull_NSI_METER_ID = 1 AND [NSI_METER_ID] IS NULL) OR ([NSI_METER_ID] = @Original_NSI_METER_ID)) AND ((@IsNull_PROD_GROUP = 1 AND [PROD_GROUP] IS NULL) OR ([PROD_GROUP] = @Original_PROD_GROUP)) AND ((@IsNull_N_DRAWING = 1 AND [N_DRAWING] IS NULL) OR ([N_DRAWING] = @Original_N_DRAWING)) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CODE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CODE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CODE" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CODE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SHORT_NAME" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SHORT_NAME" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_SHORT_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="SHORT_NAME" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NSI_METER_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_METER_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_NSI_METER_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_METER_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PROD_GROUP" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PROD_GROUP" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_PROD_GROUP" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PROD_GROUP" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_N_DRAWING" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="N_DRAWING" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_N_DRAWING" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="N_DRAWING" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[NSI_PRODUCT] ([CODE], [SHORT_NAME], [FULL_NAME], [NSI_METER_ID], [PROD_GROUP], [N_DRAWING], [LAST_UPDATE], [LAST_UPDATE_USER]) VALUES (@CODE, @SHORT_NAME, @FULL_NAME, @NSI_METER_ID, @PROD_GROUP, @N_DRAWING, @LAST_UPDATE, @LAST_UPDATE_USER);
SELECT ID, CODE, SHORT_NAME, FULL_NAME, NSI_METER_ID, PROD_GROUP, N_DRAWING, LAST_UPDATE, LAST_UPDATE_USER FROM NSI_PRODUCT WHERE (ID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CODE" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CODE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@SHORT_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="SHORT_NAME" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@FULL_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FULL_NAME" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@NSI_METER_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_METER_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@PROD_GROUP" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PROD_GROUP" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@N_DRAWING" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="N_DRAWING" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT        NSI_PRODUCT.ID, NSI_PRODUCT.CODE, NSI_PRODUCT.SHORT_NAME, NSI_PRODUCT.FULL_NAME, NSI_PRODUCT.NSI_METER_ID, 
                         NSI_PRODUCT.PROD_GROUP, NSI_PRODUCT.N_DRAWING, NSI_PRODUCT.LAST_UPDATE, NSI_PRODUCT.LAST_UPDATE_USER, 
                         NSI_METER.SHORT_NAME AS NSI_METER_NAME, NSI_PRODUCT_GROUP.NAME AS NSI_PROD_GROUP_NAME
FROM            NSI_PRODUCT INNER JOIN
                         NSI_PRODUCT_GROUP ON NSI_PRODUCT.PROD_GROUP = NSI_PRODUCT_GROUP.ID LEFT OUTER JOIN
                         NSI_METER ON NSI_PRODUCT.NSI_METER_ID = NSI_METER.ID</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[NSI_PRODUCT] SET [CODE] = @CODE, [SHORT_NAME] = @SHORT_NAME, [FULL_NAME] = @FULL_NAME, [NSI_METER_ID] = @NSI_METER_ID, [PROD_GROUP] = @PROD_GROUP, [N_DRAWING] = @N_DRAWING, [LAST_UPDATE] = @LAST_UPDATE, [LAST_UPDATE_USER] = @LAST_UPDATE_USER WHERE (([ID] = @Original_ID) AND ((@IsNull_CODE = 1 AND [CODE] IS NULL) OR ([CODE] = @Original_CODE)) AND ((@IsNull_SHORT_NAME = 1 AND [SHORT_NAME] IS NULL) OR ([SHORT_NAME] = @Original_SHORT_NAME)) AND ((@IsNull_NSI_METER_ID = 1 AND [NSI_METER_ID] IS NULL) OR ([NSI_METER_ID] = @Original_NSI_METER_ID)) AND ((@IsNull_PROD_GROUP = 1 AND [PROD_GROUP] IS NULL) OR ([PROD_GROUP] = @Original_PROD_GROUP)) AND ((@IsNull_N_DRAWING = 1 AND [N_DRAWING] IS NULL) OR ([N_DRAWING] = @Original_N_DRAWING)) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)));
SELECT ID, CODE, SHORT_NAME, FULL_NAME, NSI_METER_ID, PROD_GROUP, N_DRAWING, LAST_UPDATE, LAST_UPDATE_USER FROM NSI_PRODUCT WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CODE" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CODE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@SHORT_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="SHORT_NAME" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@FULL_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FULL_NAME" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@NSI_METER_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_METER_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@PROD_GROUP" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PROD_GROUP" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@N_DRAWING" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="N_DRAWING" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CODE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CODE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CODE" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CODE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SHORT_NAME" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SHORT_NAME" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_SHORT_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="SHORT_NAME" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NSI_METER_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_METER_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_NSI_METER_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_METER_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PROD_GROUP" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PROD_GROUP" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_PROD_GROUP" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="PROD_GROUP" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_N_DRAWING" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="N_DRAWING" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_N_DRAWING" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="N_DRAWING" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="CODE" DataSetColumn="CODE" />
              <Mapping SourceColumn="SHORT_NAME" DataSetColumn="SHORT_NAME" />
              <Mapping SourceColumn="FULL_NAME" DataSetColumn="FULL_NAME" />
              <Mapping SourceColumn="NSI_METER_ID" DataSetColumn="NSI_METER_ID" />
              <Mapping SourceColumn="PROD_GROUP" DataSetColumn="PROD_GROUP" />
              <Mapping SourceColumn="N_DRAWING" DataSetColumn="N_DRAWING" />
              <Mapping SourceColumn="LAST_UPDATE" DataSetColumn="LAST_UPDATE" />
              <Mapping SourceColumn="LAST_UPDATE_USER" DataSetColumn="LAST_UPDATE_USER" />
              <Mapping SourceColumn="NSI_METER_NAME" DataSetColumn="NSI_METER_NAME" />
              <Mapping SourceColumn="NSI_PROD_GROUP_NAME" DataSetColumn="NSI_PROD_GROUP_NAME" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.HasLinkProduct" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="HasLinkProduct" Modifier="Public" Name="HasLinkProduct" QueryType="Scalar" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="HasLinkProduct">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.HasLinkProduct</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.UpdatePrUnitName" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="UpdatePrUnitName" Modifier="Public" Name="UpdatePrUnitName" QueryType="Scalar" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="UpdatePrUnitName">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.UpdatePrUnitName</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@NSI_PU_ID" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.UpdatePrUnitNameAll" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="UpdatePrUnitNameAll" Modifier="Public" Name="UpdatePrUnitNameAll" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy2" UserSourceName="UpdatePrUnitNameAll">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.UpdatePrUnitNameAll</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="NSI_PRODUCT_STATETableAdapter" GeneratorDataComponentClassName="NSI_PRODUCT_STATETableAdapter" Name="NSI_PRODUCT_STATE" UserDataComponentName="NSI_PRODUCT_STATETableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.NSI_PRODUCT_STATE" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[NSI_PRODUCT_STATE] WHERE (([ID] = @Original_ID) AND ((@IsNull_NAME = 1 AND [NAME] IS NULL) OR ([NAME] = @Original_NAME)) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NAME" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NAME" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NAME" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[NSI_PRODUCT_STATE] ([NAME], [LAST_UPDATE], [LAST_UPDATE_USER]) VALUES (@NAME, @LAST_UPDATE, @LAST_UPDATE_USER);
SELECT ID, NAME, LAST_UPDATE, LAST_UPDATE_USER FROM NSI_PRODUCT_STATE WHERE (ID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NAME" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT ID, NAME, LAST_UPDATE, LAST_UPDATE_USER FROM dbo.NSI_PRODUCT_STATE</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[NSI_PRODUCT_STATE] SET [NAME] = @NAME, [LAST_UPDATE] = @LAST_UPDATE, [LAST_UPDATE_USER] = @LAST_UPDATE_USER WHERE (([ID] = @Original_ID) AND ((@IsNull_NAME = 1 AND [NAME] IS NULL) OR ([NAME] = @Original_NAME)) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)));
SELECT ID, NAME, LAST_UPDATE, LAST_UPDATE_USER FROM NSI_PRODUCT_STATE WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NAME" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NAME" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NAME" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NAME" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="NAME" DataSetColumn="NAME" />
              <Mapping SourceColumn="LAST_UPDATE" DataSetColumn="LAST_UPDATE" />
              <Mapping SourceColumn="LAST_UPDATE_USER" DataSetColumn="LAST_UPDATE_USER" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.HasLinkProductState" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="HasLinkProductState" Modifier="Public" Name="HasLinkProductState" QueryType="Scalar" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="HasLinkProductState">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.HasLinkProductState</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="NSI_SERVICETableAdapter" GeneratorDataComponentClassName="NSI_SERVICETableAdapter" Name="NSI_SERVICE" UserDataComponentName="NSI_SERVICETableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.NSI_SERVICE" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[NSI_SERVICE] WHERE (([ID] = @Original_ID) AND ((@IsNull_CODE = 1 AND [CODE] IS NULL) OR ([CODE] = @Original_CODE)) AND ((@IsNull_SHORT_NAME = 1 AND [SHORT_NAME] IS NULL) OR ([SHORT_NAME] = @Original_SHORT_NAME)) AND ((@IsNull_FULL_NAME = 1 AND [FULL_NAME] IS NULL) OR ([FULL_NAME] = @Original_FULL_NAME)) AND ((@IsNull_NSI_METER_ID = 1 AND [NSI_METER_ID] IS NULL) OR ([NSI_METER_ID] = @Original_NSI_METER_ID)) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CODE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CODE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CODE" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CODE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SHORT_NAME" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SHORT_NAME" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_SHORT_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="SHORT_NAME" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_FULL_NAME" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="FULL_NAME" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_FULL_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FULL_NAME" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NSI_METER_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_METER_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_NSI_METER_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_METER_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[NSI_SERVICE] ([CODE], [SHORT_NAME], [FULL_NAME], [NSI_METER_ID], [LAST_UPDATE], [LAST_UPDATE_USER]) VALUES (@CODE, @SHORT_NAME, @FULL_NAME, @NSI_METER_ID, @LAST_UPDATE, @LAST_UPDATE_USER);
SELECT ID, CODE, SHORT_NAME, FULL_NAME, NSI_METER_ID, LAST_UPDATE, LAST_UPDATE_USER FROM NSI_SERVICE WHERE (ID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CODE" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CODE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@SHORT_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="SHORT_NAME" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@FULL_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FULL_NAME" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@NSI_METER_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_METER_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT ID, CODE, SHORT_NAME, FULL_NAME, NSI_METER_ID, LAST_UPDATE, LAST_UPDATE_USER FROM dbo.NSI_SERVICE</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[NSI_SERVICE] SET [CODE] = @CODE, [SHORT_NAME] = @SHORT_NAME, [FULL_NAME] = @FULL_NAME, [NSI_METER_ID] = @NSI_METER_ID, [LAST_UPDATE] = @LAST_UPDATE, [LAST_UPDATE_USER] = @LAST_UPDATE_USER WHERE (([ID] = @Original_ID) AND ((@IsNull_CODE = 1 AND [CODE] IS NULL) OR ([CODE] = @Original_CODE)) AND ((@IsNull_SHORT_NAME = 1 AND [SHORT_NAME] IS NULL) OR ([SHORT_NAME] = @Original_SHORT_NAME)) AND ((@IsNull_FULL_NAME = 1 AND [FULL_NAME] IS NULL) OR ([FULL_NAME] = @Original_FULL_NAME)) AND ((@IsNull_NSI_METER_ID = 1 AND [NSI_METER_ID] IS NULL) OR ([NSI_METER_ID] = @Original_NSI_METER_ID)) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)));
SELECT ID, CODE, SHORT_NAME, FULL_NAME, NSI_METER_ID, LAST_UPDATE, LAST_UPDATE_USER FROM NSI_SERVICE WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CODE" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CODE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@SHORT_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="SHORT_NAME" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@FULL_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FULL_NAME" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@NSI_METER_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_METER_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CODE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CODE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CODE" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CODE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SHORT_NAME" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SHORT_NAME" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_SHORT_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="SHORT_NAME" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_FULL_NAME" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="FULL_NAME" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_FULL_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FULL_NAME" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NSI_METER_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_METER_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_NSI_METER_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_METER_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="CODE" DataSetColumn="CODE" />
              <Mapping SourceColumn="SHORT_NAME" DataSetColumn="SHORT_NAME" />
              <Mapping SourceColumn="FULL_NAME" DataSetColumn="FULL_NAME" />
              <Mapping SourceColumn="NSI_METER_ID" DataSetColumn="NSI_METER_ID" />
              <Mapping SourceColumn="LAST_UPDATE" DataSetColumn="LAST_UPDATE" />
              <Mapping SourceColumn="LAST_UPDATE_USER" DataSetColumn="LAST_UPDATE_USER" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.HasLinkService" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="HasLinkService" Modifier="Public" Name="HasLinkService" QueryType="Scalar" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="HasLinkService">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.HasLinkService</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="NSI_TYPE_OF_ACTIVITYTableAdapter" GeneratorDataComponentClassName="NSI_TYPE_OF_ACTIVITYTableAdapter" Name="NSI_TYPE_OF_ACTIVITY" UserDataComponentName="NSI_TYPE_OF_ACTIVITYTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.NSI_TYPE_OF_ACTIVITY" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[NSI_TYPE_OF_ACTIVITY] WHERE (([ID] = @Original_ID) AND ((@IsNull_CODE = 1 AND [CODE] IS NULL) OR ([CODE] = @Original_CODE)) AND ((@IsNull_NAME = 1 AND [NAME] IS NULL) OR ([NAME] = @Original_NAME)) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CODE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CODE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CODE" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CODE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NAME" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NAME" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NAME" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[NSI_TYPE_OF_ACTIVITY] ([CODE], [NAME], [LAST_UPDATE], [LAST_UPDATE_USER]) VALUES (@CODE, @NAME, @LAST_UPDATE, @LAST_UPDATE_USER);
SELECT ID, CODE, NAME, LAST_UPDATE, LAST_UPDATE_USER FROM NSI_TYPE_OF_ACTIVITY WHERE (ID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CODE" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CODE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NAME" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT ID, CODE, NAME, LAST_UPDATE, LAST_UPDATE_USER FROM dbo.NSI_TYPE_OF_ACTIVITY</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[NSI_TYPE_OF_ACTIVITY] SET [CODE] = @CODE, [NAME] = @NAME, [LAST_UPDATE] = @LAST_UPDATE, [LAST_UPDATE_USER] = @LAST_UPDATE_USER WHERE (([ID] = @Original_ID) AND ((@IsNull_CODE = 1 AND [CODE] IS NULL) OR ([CODE] = @Original_CODE)) AND ((@IsNull_NAME = 1 AND [NAME] IS NULL) OR ([NAME] = @Original_NAME)) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)));
SELECT ID, CODE, NAME, LAST_UPDATE, LAST_UPDATE_USER FROM NSI_TYPE_OF_ACTIVITY WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CODE" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CODE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NAME" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CODE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CODE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CODE" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CODE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NAME" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NAME" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NAME" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="CODE" DataSetColumn="CODE" />
              <Mapping SourceColumn="NAME" DataSetColumn="NAME" />
              <Mapping SourceColumn="LAST_UPDATE" DataSetColumn="LAST_UPDATE" />
              <Mapping SourceColumn="LAST_UPDATE_USER" DataSetColumn="LAST_UPDATE_USER" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.HasLinkTypeOfAct" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="HasLinkTypeOfAct" Modifier="Public" Name="HasLinkTypeOfAct" QueryType="Scalar" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="HasLinkTypeOfAct">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.HasLinkTypeOfAct</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="PAY_IN_ON_INV_OUTTableAdapter" GeneratorDataComponentClassName="PAY_IN_ON_INV_OUTTableAdapter" Name="PAY_IN_ON_INV_OUT" UserDataComponentName="PAY_IN_ON_INV_OUTTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.PAY_IN_ON_INV_OUT" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [PAY_IN_ON_INV_OUT] WHERE (([ID] = @Original_ID) AND ((@IsNull_PAYMENT_IN_ID = 1 AND [PAYMENT_IN_ID] IS NULL) OR ([PAYMENT_IN_ID] = @Original_PAYMENT_IN_ID)) AND ((@IsNull_INVOICE_OUT_ID = 1 AND [INVOICE_OUT_ID] IS NULL) OR ([INVOICE_OUT_ID] = @Original_INVOICE_OUT_ID)) AND ((@IsNull_SUM_CUR = 1 AND [SUM_CUR] IS NULL) OR ([SUM_CUR] = @Original_SUM_CUR)) AND ((@IsNull_SUM_RUB = 1 AND [SUM_RUB] IS NULL) OR ([SUM_RUB] = @Original_SUM_RUB)) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)) AND ((@IsNull_PID = 1 AND [PID] IS NULL) OR ([PID] = @Original_PID)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PAYMENT_IN_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PAYMENT_IN_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PAYMENT_IN_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PAYMENT_IN_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_INVOICE_OUT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="INVOICE_OUT_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_INVOICE_OUT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="INVOICE_OUT_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SUM_CUR" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SUM_CUR" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_SUM_CUR" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="SUM_CUR" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SUM_RUB" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SUM_RUB" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_SUM_RUB" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="SUM_RUB" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [PAY_IN_ON_INV_OUT] ([PAYMENT_IN_ID], [INVOICE_OUT_ID], [SUM_CUR], [SUM_RUB], [LAST_UPDATE], [LAST_UPDATE_USER], [PID]) VALUES (@PAYMENT_IN_ID, @INVOICE_OUT_ID, @SUM_CUR, @SUM_RUB, @LAST_UPDATE, @LAST_UPDATE_USER, @PID);
SELECT ID, PAYMENT_IN_ID, INVOICE_OUT_ID, SUM_CUR, SUM_RUB, LAST_UPDATE, LAST_UPDATE_USER, PID FROM PAY_IN_ON_INV_OUT WHERE (ID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PAYMENT_IN_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PAYMENT_IN_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@INVOICE_OUT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="INVOICE_OUT_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@SUM_CUR" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="SUM_CUR" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@SUM_RUB" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="SUM_RUB" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT     ID, PAYMENT_IN_ID, INVOICE_OUT_ID, SUM_CUR, SUM_RUB, LAST_UPDATE, LAST_UPDATE_USER, PID
FROM         PAY_IN_ON_INV_OUT</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [PAY_IN_ON_INV_OUT] SET [PAYMENT_IN_ID] = @PAYMENT_IN_ID, [INVOICE_OUT_ID] = @INVOICE_OUT_ID, [SUM_CUR] = @SUM_CUR, [SUM_RUB] = @SUM_RUB, [LAST_UPDATE] = @LAST_UPDATE, [LAST_UPDATE_USER] = @LAST_UPDATE_USER, [PID] = @PID WHERE (([ID] = @Original_ID) AND ((@IsNull_PAYMENT_IN_ID = 1 AND [PAYMENT_IN_ID] IS NULL) OR ([PAYMENT_IN_ID] = @Original_PAYMENT_IN_ID)) AND ((@IsNull_INVOICE_OUT_ID = 1 AND [INVOICE_OUT_ID] IS NULL) OR ([INVOICE_OUT_ID] = @Original_INVOICE_OUT_ID)) AND ((@IsNull_SUM_CUR = 1 AND [SUM_CUR] IS NULL) OR ([SUM_CUR] = @Original_SUM_CUR)) AND ((@IsNull_SUM_RUB = 1 AND [SUM_RUB] IS NULL) OR ([SUM_RUB] = @Original_SUM_RUB)) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)) AND ((@IsNull_PID = 1 AND [PID] IS NULL) OR ([PID] = @Original_PID)));
SELECT ID, PAYMENT_IN_ID, INVOICE_OUT_ID, SUM_CUR, SUM_RUB, LAST_UPDATE, LAST_UPDATE_USER, PID FROM PAY_IN_ON_INV_OUT WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PAYMENT_IN_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PAYMENT_IN_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@INVOICE_OUT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="INVOICE_OUT_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@SUM_CUR" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="SUM_CUR" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@SUM_RUB" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="SUM_RUB" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PAYMENT_IN_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PAYMENT_IN_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PAYMENT_IN_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PAYMENT_IN_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_INVOICE_OUT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="INVOICE_OUT_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_INVOICE_OUT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="INVOICE_OUT_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SUM_CUR" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SUM_CUR" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_SUM_CUR" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="SUM_CUR" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SUM_RUB" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SUM_RUB" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_SUM_RUB" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="SUM_RUB" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="FSO2.dbo.PAY_IN_ON_INV_OUT" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="PAYMENT_IN_ID" DataSetColumn="PAYMENT_IN_ID" />
              <Mapping SourceColumn="INVOICE_OUT_ID" DataSetColumn="INVOICE_OUT_ID" />
              <Mapping SourceColumn="SUM_CUR" DataSetColumn="SUM_CUR" />
              <Mapping SourceColumn="SUM_RUB" DataSetColumn="SUM_RUB" />
              <Mapping SourceColumn="LAST_UPDATE" DataSetColumn="LAST_UPDATE" />
              <Mapping SourceColumn="LAST_UPDATE_USER" DataSetColumn="LAST_UPDATE_USER" />
              <Mapping SourceColumn="PID" DataSetColumn="PID" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.PAY_IN_ON_INV_OUT" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByID" GeneratorSourceName="FillByID" GetMethodModifier="Public" GetMethodName="GetDataByID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByID" UserSourceName="FillByID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT     ID, PAYMENT_IN_ID, INVOICE_OUT_ID, SUM_CUR, SUM_RUB, LAST_UPDATE, LAST_UPDATE_USER, PID
FROM         PAY_IN_ON_INV_OUT
WHERE ID = @ID</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="FSO2.dbo.PAY_IN_ON_INV_OUT" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="PAY_IN_ON_SERVICETableAdapter" GeneratorDataComponentClassName="PAY_IN_ON_SERVICETableAdapter" Name="PAY_IN_ON_SERVICE" UserDataComponentName="PAY_IN_ON_SERVICETableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.PAY_IN_ON_SERVICE" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [PAY_IN_ON_SERVICE] WHERE (([ID] = @Original_ID) AND ([PAYMENT_IN_ID] = @Original_PAYMENT_IN_ID) AND ([NSI_SERVICE_ID] = @Original_NSI_SERVICE_ID) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)) AND ((@IsNull_PID = 1 AND [PID] IS NULL) OR ([PID] = @Original_PID)) AND ((@IsNull_QAUNTITY = 1 AND [QAUNTITY] IS NULL) OR ([QAUNTITY] = @Original_QAUNTITY)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PAYMENT_IN_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PAYMENT_IN_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_NSI_SERVICE_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_SERVICE_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_QAUNTITY" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="QAUNTITY" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Original_QAUNTITY" Precision="18" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="QAUNTITY" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [PAY_IN_ON_SERVICE] ([PAYMENT_IN_ID], [NSI_SERVICE_ID], [LAST_UPDATE], [LAST_UPDATE_USER], [PID], [QAUNTITY]) VALUES (@PAYMENT_IN_ID, @NSI_SERVICE_ID, @LAST_UPDATE, @LAST_UPDATE_USER, @PID, @QAUNTITY);
SELECT ID, PAYMENT_IN_ID, NSI_SERVICE_ID, LAST_UPDATE, LAST_UPDATE_USER, PID, QAUNTITY FROM PAY_IN_ON_SERVICE WHERE (ID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PAYMENT_IN_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PAYMENT_IN_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@NSI_SERVICE_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_SERVICE_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@QAUNTITY" Precision="18" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="QAUNTITY" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        ID, PAYMENT_IN_ID, NSI_SERVICE_ID, LAST_UPDATE, LAST_UPDATE_USER, PID, QAUNTITY
FROM            PAY_IN_ON_SERVICE</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [PAY_IN_ON_SERVICE] SET [PAYMENT_IN_ID] = @PAYMENT_IN_ID, [NSI_SERVICE_ID] = @NSI_SERVICE_ID, [LAST_UPDATE] = @LAST_UPDATE, [LAST_UPDATE_USER] = @LAST_UPDATE_USER, [PID] = @PID, [QAUNTITY] = @QAUNTITY WHERE (([ID] = @Original_ID) AND ([PAYMENT_IN_ID] = @Original_PAYMENT_IN_ID) AND ([NSI_SERVICE_ID] = @Original_NSI_SERVICE_ID) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)) AND ((@IsNull_PID = 1 AND [PID] IS NULL) OR ([PID] = @Original_PID)) AND ((@IsNull_QAUNTITY = 1 AND [QAUNTITY] IS NULL) OR ([QAUNTITY] = @Original_QAUNTITY)));
SELECT ID, PAYMENT_IN_ID, NSI_SERVICE_ID, LAST_UPDATE, LAST_UPDATE_USER, PID, QAUNTITY FROM PAY_IN_ON_SERVICE WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PAYMENT_IN_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PAYMENT_IN_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@NSI_SERVICE_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_SERVICE_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@QAUNTITY" Precision="18" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="QAUNTITY" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PAYMENT_IN_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PAYMENT_IN_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_NSI_SERVICE_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_SERVICE_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_QAUNTITY" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="QAUNTITY" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Original_QAUNTITY" Precision="18" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="QAUNTITY" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="FSO2.dbo.PAY_IN_ON_SERVICE" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="PAYMENT_IN_ID" DataSetColumn="PAYMENT_IN_ID" />
              <Mapping SourceColumn="NSI_SERVICE_ID" DataSetColumn="NSI_SERVICE_ID" />
              <Mapping SourceColumn="LAST_UPDATE" DataSetColumn="LAST_UPDATE" />
              <Mapping SourceColumn="LAST_UPDATE_USER" DataSetColumn="LAST_UPDATE_USER" />
              <Mapping SourceColumn="PID" DataSetColumn="PID" />
              <Mapping SourceColumn="QAUNTITY" DataSetColumn="QAUNTITY" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.PAY_IN_ON_SERVICE" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByID" GeneratorSourceName="FillByID" GetMethodModifier="Public" GetMethodName="GetDataByID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByID" UserSourceName="FillByID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT ID, LAST_UPDATE, LAST_UPDATE_USER, NSI_SERVICE_ID, PAYMENT_IN_ID, PID, QAUNTITY FROM PAY_IN_ON_SERVICE WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="FSO2.dbo.PAY_IN_ON_SERVICE" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="PAY_OUT_ON_INV_INTableAdapter" GeneratorDataComponentClassName="PAY_OUT_ON_INV_INTableAdapter" Name="PAY_OUT_ON_INV_IN" UserDataComponentName="PAY_OUT_ON_INV_INTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[PAY_OUT_ON_INV_IN] WHERE (([ID] = @Original_ID) AND ((@IsNull_PAYMENT_OUT_ID = 1 AND [PAYMENT_OUT_ID] IS NULL) OR ([PAYMENT_OUT_ID] = @Original_PAYMENT_OUT_ID)) AND ((@IsNull_INVOICE_IN_ID = 1 AND [INVOICE_IN_ID] IS NULL) OR ([INVOICE_IN_ID] = @Original_INVOICE_IN_ID)) AND ((@IsNull_SUM_CUR = 1 AND [SUM_CUR] IS NULL) OR ([SUM_CUR] = @Original_SUM_CUR)) AND ((@IsNull_SUM_RUB = 1 AND [SUM_RUB] IS NULL) OR ([SUM_RUB] = @Original_SUM_RUB)) AND ((@IsNull_COMMENTS = 1 AND [COMMENTS] IS NULL) OR ([COMMENTS] = @Original_COMMENTS)) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PAYMENT_OUT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PAYMENT_OUT_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PAYMENT_OUT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PAYMENT_OUT_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_INVOICE_IN_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="INVOICE_IN_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_INVOICE_IN_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="INVOICE_IN_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SUM_CUR" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SUM_CUR" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_SUM_CUR" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="SUM_CUR" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SUM_RUB" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SUM_RUB" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_SUM_RUB" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="SUM_RUB" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_COMMENTS" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="COMMENTS" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_COMMENTS" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="COMMENTS" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>INSERT INTO PAY_OUT_ON_INV_IN
                      (PAYMENT_OUT_ID, INVOICE_IN_ID, SUM_CUR, SUM_RUB, COMMENTS, LAST_UPDATE, LAST_UPDATE_USER, PID)
VALUES     (@PAYMENT_OUT_ID,@INVOICE_IN_ID,@SUM_CUR,@SUM_RUB,@COMMENTS,@LAST_UPDATE,@LAST_UPDATE_USER,@PID);  
SELECT ID, PAYMENT_OUT_ID, INVOICE_IN_ID, SUM_CUR, SUM_RUB, COMMENTS, LAST_UPDATE, LAST_UPDATE_USER FROM PAY_OUT_ON_INV_IN WHERE (ID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="PAYMENT_OUT_ID" ColumnName="PAYMENT_OUT_ID" DataSourceName="FSO2.dbo.PAY_OUT_ON_INV_IN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@PAYMENT_OUT_ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="PAYMENT_OUT_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="INVOICE_IN_ID" ColumnName="INVOICE_IN_ID" DataSourceName="FSO2.dbo.PAY_OUT_ON_INV_IN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@INVOICE_IN_ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="INVOICE_IN_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="SUM_CUR" ColumnName="SUM_CUR" DataSourceName="FSO2.dbo.PAY_OUT_ON_INV_IN" DataTypeServer="money" DbType="Currency" Direction="Input" ParameterName="@SUM_CUR" Precision="0" ProviderType="Money" Scale="0" Size="8" SourceColumn="SUM_CUR" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="SUM_RUB" ColumnName="SUM_RUB" DataSourceName="FSO2.dbo.PAY_OUT_ON_INV_IN" DataTypeServer="money" DbType="Currency" Direction="Input" ParameterName="@SUM_RUB" Precision="0" ProviderType="Money" Scale="0" Size="8" SourceColumn="SUM_RUB" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="COMMENTS" ColumnName="COMMENTS" DataSourceName="FSO2.dbo.PAY_OUT_ON_INV_IN" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@COMMENTS" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="COMMENTS" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="LAST_UPDATE" ColumnName="LAST_UPDATE" DataSourceName="FSO2.dbo.PAY_OUT_ON_INV_IN" DataTypeServer="datetime2" DbType="AnsiString" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="8" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="LAST_UPDATE_USER" ColumnName="LAST_UPDATE_USER" DataSourceName="FSO2.dbo.PAY_OUT_ON_INV_IN" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="PID" ColumnName="PID" DataSourceName="FSO2.dbo.PAY_OUT_ON_INV_IN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT     PAY_OUT_ON_INV_IN.ID, PAY_OUT_ON_INV_IN.SUM_CUR, PAY_OUT_ON_INV_IN.SUM_RUB, PAY_OUT_ON_INV_IN.COMMENTS, 
                      PAYMENT_OUT.NUMBER AS PAY_NUMBER, PAYMENT_OUT.DATE AS PAY_DATE, INVOICE_IN.NUMBER AS INV_NUMBER, 
                      INVOICE_IN.REG_NUMBER AS INV_RG_NUMBER, INVOICE_IN.DATE AS INV_DATE, INVOICE_IN.SUM AS INV_SUM, 
                      NSI_CURRENCY.SHORT_NAME AS CURRENCY_NAME, PAY_OUT_ON_INV_IN.INVOICE_IN_ID, PAY_OUT_ON_INV_IN.PAYMENT_OUT_ID, 
                      PAY_OUT_ON_INV_IN.LAST_UPDATE_USER, PAY_OUT_ON_INV_IN.LAST_UPDATE, PAY_OUT_ON_INV_IN.PID
FROM         NSI_CURRENCY RIGHT OUTER JOIN
                      INVOICE_IN ON NSI_CURRENCY.ID = INVOICE_IN.NSI_CURRENCY_ID RIGHT OUTER JOIN
                      PAY_OUT_ON_INV_IN ON INVOICE_IN.ID = PAY_OUT_ON_INV_IN.INVOICE_IN_ID LEFT OUTER JOIN
                      PAYMENT_OUT ON PAY_OUT_ON_INV_IN.PAYMENT_OUT_ID = PAYMENT_OUT.ID</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>UPDATE    PAY_OUT_ON_INV_IN
SET              PAYMENT_OUT_ID = @PAYMENT_OUT_ID, INVOICE_IN_ID = @INVOICE_IN_ID, SUM_CUR = @SUM_CUR, SUM_RUB = @SUM_RUB, 
                      COMMENTS = @COMMENTS, LAST_UPDATE = @LAST_UPDATE, LAST_UPDATE_USER = @LAST_UPDATE_USER, PID = @PID
WHERE     (ID = @Original_ID) AND (@IsNull_PAYMENT_OUT_ID = 1 AND PAYMENT_OUT_ID IS NULL OR
                      PAYMENT_OUT_ID = @Original_PAYMENT_OUT_ID) AND (@IsNull_INVOICE_IN_ID = 1 AND INVOICE_IN_ID IS NULL OR
                      INVOICE_IN_ID = @Original_INVOICE_IN_ID) AND (@IsNull_SUM_CUR = 1 AND SUM_CUR IS NULL OR
                      SUM_CUR = @Original_SUM_CUR) AND (@IsNull_SUM_RUB = 1 AND SUM_RUB IS NULL OR
                      SUM_RUB = @Original_SUM_RUB) AND (@IsNull_COMMENTS = 1 AND COMMENTS IS NULL OR
                      COMMENTS = @Original_COMMENTS) AND (@IsNull_LAST_UPDATE = 1 AND LAST_UPDATE IS NULL OR
                      LAST_UPDATE = @Original_LAST_UPDATE) AND (@IsNull_LAST_UPDATE_USER = 1 AND LAST_UPDATE_USER IS NULL OR
                      LAST_UPDATE_USER = @Original_LAST_UPDATE_USER) AND (@IsNull_PID = 1 AND PID IS NULL OR
                      PID = @Original_PID);    
SELECT ID, PAYMENT_OUT_ID, INVOICE_IN_ID, SUM_CUR, SUM_RUB, COMMENTS, LAST_UPDATE, LAST_UPDATE_USER FROM PAY_OUT_ON_INV_IN WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="PAYMENT_OUT_ID" ColumnName="PAYMENT_OUT_ID" DataSourceName="FSO2.dbo.PAY_OUT_ON_INV_IN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@PAYMENT_OUT_ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="PAYMENT_OUT_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="INVOICE_IN_ID" ColumnName="INVOICE_IN_ID" DataSourceName="FSO2.dbo.PAY_OUT_ON_INV_IN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@INVOICE_IN_ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="INVOICE_IN_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="SUM_CUR" ColumnName="SUM_CUR" DataSourceName="FSO2.dbo.PAY_OUT_ON_INV_IN" DataTypeServer="money" DbType="Currency" Direction="Input" ParameterName="@SUM_CUR" Precision="0" ProviderType="Money" Scale="0" Size="8" SourceColumn="SUM_CUR" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="SUM_RUB" ColumnName="SUM_RUB" DataSourceName="FSO2.dbo.PAY_OUT_ON_INV_IN" DataTypeServer="money" DbType="Currency" Direction="Input" ParameterName="@SUM_RUB" Precision="0" ProviderType="Money" Scale="0" Size="8" SourceColumn="SUM_RUB" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="COMMENTS" ColumnName="COMMENTS" DataSourceName="FSO2.dbo.PAY_OUT_ON_INV_IN" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@COMMENTS" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="COMMENTS" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="LAST_UPDATE" ColumnName="LAST_UPDATE" DataSourceName="FSO2.dbo.PAY_OUT_ON_INV_IN" DataTypeServer="datetime2" DbType="AnsiString" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="8" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="LAST_UPDATE_USER" ColumnName="LAST_UPDATE_USER" DataSourceName="FSO2.dbo.PAY_OUT_ON_INV_IN" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="PID" ColumnName="PID" DataSourceName="FSO2.dbo.PAY_OUT_ON_INV_IN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="Original_ID" ColumnName="ID" DataSourceName="FSO2.dbo.PAY_OUT_ON_INV_IN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="IsNull_PAYMENT_OUT_ID" ColumnName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IsNull_PAYMENT_OUT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PAYMENT_OUT_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="Original_PAYMENT_OUT_ID" ColumnName="PAYMENT_OUT_ID" DataSourceName="FSO2.dbo.PAY_OUT_ON_INV_IN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Original_PAYMENT_OUT_ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="PAYMENT_OUT_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="IsNull_INVOICE_IN_ID" ColumnName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IsNull_INVOICE_IN_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="INVOICE_IN_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="Original_INVOICE_IN_ID" ColumnName="INVOICE_IN_ID" DataSourceName="FSO2.dbo.PAY_OUT_ON_INV_IN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Original_INVOICE_IN_ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="INVOICE_IN_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="IsNull_SUM_CUR" ColumnName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IsNull_SUM_CUR" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SUM_CUR" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="Original_SUM_CUR" ColumnName="SUM_CUR" DataSourceName="FSO2.dbo.PAY_OUT_ON_INV_IN" DataTypeServer="money" DbType="Currency" Direction="Input" ParameterName="@Original_SUM_CUR" Precision="0" ProviderType="Money" Scale="0" Size="8" SourceColumn="SUM_CUR" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="IsNull_SUM_RUB" ColumnName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IsNull_SUM_RUB" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SUM_RUB" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="Original_SUM_RUB" ColumnName="SUM_RUB" DataSourceName="FSO2.dbo.PAY_OUT_ON_INV_IN" DataTypeServer="money" DbType="Currency" Direction="Input" ParameterName="@Original_SUM_RUB" Precision="0" ProviderType="Money" Scale="0" Size="8" SourceColumn="SUM_RUB" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="IsNull_COMMENTS" ColumnName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IsNull_COMMENTS" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="COMMENTS" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="Original_COMMENTS" ColumnName="COMMENTS" DataSourceName="FSO2.dbo.PAY_OUT_ON_INV_IN" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@Original_COMMENTS" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="COMMENTS" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="IsNull_LAST_UPDATE" ColumnName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="Original_LAST_UPDATE" ColumnName="LAST_UPDATE" DataSourceName="FSO2.dbo.PAY_OUT_ON_INV_IN" DataTypeServer="datetime2" DbType="AnsiString" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="8" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="IsNull_LAST_UPDATE_USER" ColumnName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="Original_LAST_UPDATE_USER" ColumnName="LAST_UPDATE_USER" DataSourceName="FSO2.dbo.PAY_OUT_ON_INV_IN" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="IsNull_PID" ColumnName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IsNull_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="Original_PID" ColumnName="PID" DataSourceName="FSO2.dbo.PAY_OUT_ON_INV_IN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Original_PID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="FSO2.dbo.PAY_OUT_ON_INV_IN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="PAYMENT_OUT_ID" DataSetColumn="PAYMENT_OUT_ID" />
              <Mapping SourceColumn="INVOICE_IN_ID" DataSetColumn="INVOICE_IN_ID" />
              <Mapping SourceColumn="SUM_CUR" DataSetColumn="SUM_CUR" />
              <Mapping SourceColumn="SUM_RUB" DataSetColumn="SUM_RUB" />
              <Mapping SourceColumn="COMMENTS" DataSetColumn="COMMENTS" />
              <Mapping SourceColumn="LAST_UPDATE" DataSetColumn="LAST_UPDATE" />
              <Mapping SourceColumn="LAST_UPDATE_USER" DataSetColumn="LAST_UPDATE_USER" />
              <Mapping SourceColumn="PAY_NUMBER" DataSetColumn="PAY_NUMBER" />
              <Mapping SourceColumn="PAY_DATE" DataSetColumn="PAY_DATE" />
              <Mapping SourceColumn="INV_NUMBER" DataSetColumn="INV_NUMBER" />
              <Mapping SourceColumn="INV_RG_NUMBER" DataSetColumn="INV_RG_NUMBER" />
              <Mapping SourceColumn="INV_DATE" DataSetColumn="INV_DATE" />
              <Mapping SourceColumn="INV_SUM" DataSetColumn="INV_SUM" />
              <Mapping SourceColumn="CURRENCY_NAME" DataSetColumn="CURRENCY_NAME" />
              <Mapping SourceColumn="PID" DataSetColumn="PID" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="FillByInvInID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByInvInID" GeneratorSourceName="FillByInvInID" GetMethodModifier="Public" GetMethodName="GetDataByInvInID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByInvInID" UserSourceName="FillByInvInID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT     PAY_OUT_ON_INV_IN.ID, PAY_OUT_ON_INV_IN.SUM_CUR, PAY_OUT_ON_INV_IN.SUM_RUB, PAY_OUT_ON_INV_IN.COMMENTS, 
                      PAYMENT_OUT.NUMBER AS PAY_NUMBER, PAYMENT_OUT.DATE AS PAY_DATE, INVOICE_IN.NUMBER AS INV_NUMBER, 
                      INVOICE_IN.REG_NUMBER AS INV_RG_NUMBER, INVOICE_IN.DATE AS INV_DATE, INVOICE_IN.SUM AS INV_SUM, 
                      NSI_CURRENCY.SHORT_NAME AS CURRENCY_NAME, PAY_OUT_ON_INV_IN.INVOICE_IN_ID, PAY_OUT_ON_INV_IN.PAYMENT_OUT_ID, 
                      PAY_OUT_ON_INV_IN.LAST_UPDATE_USER, PAY_OUT_ON_INV_IN.LAST_UPDATE, PAY_OUT_ON_INV_IN.PID
FROM         NSI_CURRENCY RIGHT OUTER JOIN
                      INVOICE_IN ON NSI_CURRENCY.ID = INVOICE_IN.NSI_CURRENCY_ID RIGHT OUTER JOIN
                      PAY_OUT_ON_INV_IN ON INVOICE_IN.ID = PAY_OUT_ON_INV_IN.INVOICE_IN_ID LEFT OUTER JOIN
                      PAYMENT_OUT ON PAY_OUT_ON_INV_IN.PAYMENT_OUT_ID = PAYMENT_OUT.ID
WHERE     (PAY_OUT_ON_INV_IN.INVOICE_IN_ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="ID" ColumnName="INVOICE_IN_ID" DataSourceName="FSO2.dbo.PAY_OUT_ON_INV_IN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="INVOICE_IN_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="FillByPayOutID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByPayOutID" GeneratorSourceName="FillByPayOutID" GetMethodModifier="Public" GetMethodName="GetDataByPayOutID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByPayOutID" UserSourceName="FillByPayOutID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT     PAY_OUT_ON_INV_IN.ID, PAY_OUT_ON_INV_IN.SUM_CUR, PAY_OUT_ON_INV_IN.SUM_RUB, PAY_OUT_ON_INV_IN.COMMENTS, 
                      PAYMENT_OUT.NUMBER AS PAY_NUMBER, PAYMENT_OUT.DATE AS PAY_DATE, INVOICE_IN.NUMBER AS INV_NUMBER, 
                      INVOICE_IN.REG_NUMBER AS INV_RG_NUMBER, INVOICE_IN.DATE AS INV_DATE, INVOICE_IN.SUM AS INV_SUM, 
                      NSI_CURRENCY.SHORT_NAME AS CURRENCY_NAME, PAY_OUT_ON_INV_IN.INVOICE_IN_ID, PAY_OUT_ON_INV_IN.PAYMENT_OUT_ID, 
                      PAY_OUT_ON_INV_IN.LAST_UPDATE_USER, PAY_OUT_ON_INV_IN.LAST_UPDATE, PAY_OUT_ON_INV_IN.PID
FROM         NSI_CURRENCY RIGHT OUTER JOIN
                      INVOICE_IN ON NSI_CURRENCY.ID = INVOICE_IN.NSI_CURRENCY_ID RIGHT OUTER JOIN
                      PAY_OUT_ON_INV_IN ON INVOICE_IN.ID = PAY_OUT_ON_INV_IN.INVOICE_IN_ID LEFT OUTER JOIN
                      PAYMENT_OUT ON PAY_OUT_ON_INV_IN.PAYMENT_OUT_ID = PAYMENT_OUT.ID
WHERE     (PAY_OUT_ON_INV_IN.PAYMENT_OUT_ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="ID" ColumnName="PAYMENT_OUT_ID" DataSourceName="FSO2.dbo.PAY_OUT_ON_INV_IN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="PAYMENT_OUT_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.IsPayOutLinked" DbObjectType="Function" GenerateShortCommands="true" GeneratorSourceName="IsPayOutLinked" Modifier="Public" Name="IsPayOutLinked" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="IsPayOutLinked">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.IsPayOutLinked</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="PAYMENT_INTableAdapter" GeneratorDataComponentClassName="PAYMENT_INTableAdapter" Name="PAYMENT_IN" UserDataComponentName="PAYMENT_INTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.PAYMENT_IN" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [PAYMENT_IN] WHERE (([ID] = @Original_ID) AND ((@IsNull_NUMBER = 1 AND [NUMBER] IS NULL) OR ([NUMBER] = @Original_NUMBER)) AND ((@IsNull_TYPE = 1 AND [TYPE] IS NULL) OR ([TYPE] = @Original_TYPE)) AND ((@IsNull_DATE = 1 AND [DATE] IS NULL) OR ([DATE] = @Original_DATE)) AND ((@IsNull_SUM_RUB = 1 AND [SUM_RUB] IS NULL) OR ([SUM_RUB] = @Original_SUM_RUB)) AND ((@IsNull_NSI_ORGANIZATION_ID = 1 AND [NSI_ORGANIZATION_ID] IS NULL) OR ([NSI_ORGANIZATION_ID] = @Original_NSI_ORGANIZATION_ID)) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)) AND ((@IsNull_PID = 1 AND [PID] IS NULL) OR ([PID] = @Original_PID)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NUMBER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_NUMBER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TYPE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TYPE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_TYPE" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="TYPE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_DATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="DATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SUM_RUB" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SUM_RUB" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_SUM_RUB" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="SUM_RUB" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NSI_ORGANIZATION_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_ORGANIZATION_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_NSI_ORGANIZATION_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_ORGANIZATION_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [PAYMENT_IN] ([NUMBER], [TYPE], [DATE], [SUM_RUB], [NSI_ORGANIZATION_ID], [DESCRIPTION], [LAST_UPDATE], [LAST_UPDATE_USER], [PID]) VALUES (@NUMBER, @TYPE, @DATE, @SUM_RUB, @NSI_ORGANIZATION_ID, @DESCRIPTION, @LAST_UPDATE, @LAST_UPDATE_USER, @PID);
SELECT ID, NUMBER, TYPE, DATE, SUM_RUB, NSI_ORGANIZATION_ID, DESCRIPTION, LAST_UPDATE, LAST_UPDATE_USER, PID FROM PAYMENT_IN WHERE (ID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@NUMBER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@TYPE" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="TYPE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@DATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="DATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@SUM_RUB" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="SUM_RUB" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@NSI_ORGANIZATION_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_ORGANIZATION_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@DESCRIPTION" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DESCRIPTION" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT     ID, NUMBER, TYPE, DATE, SUM_RUB, NSI_ORGANIZATION_ID, DESCRIPTION, LAST_UPDATE, LAST_UPDATE_USER, PID
FROM         PAYMENT_IN</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [PAYMENT_IN] SET [NUMBER] = @NUMBER, [TYPE] = @TYPE, [DATE] = @DATE, [SUM_RUB] = @SUM_RUB, [NSI_ORGANIZATION_ID] = @NSI_ORGANIZATION_ID, [DESCRIPTION] = @DESCRIPTION, [LAST_UPDATE] = @LAST_UPDATE, [LAST_UPDATE_USER] = @LAST_UPDATE_USER, [PID] = @PID WHERE (([ID] = @Original_ID) AND ((@IsNull_NUMBER = 1 AND [NUMBER] IS NULL) OR ([NUMBER] = @Original_NUMBER)) AND ((@IsNull_TYPE = 1 AND [TYPE] IS NULL) OR ([TYPE] = @Original_TYPE)) AND ((@IsNull_DATE = 1 AND [DATE] IS NULL) OR ([DATE] = @Original_DATE)) AND ((@IsNull_SUM_RUB = 1 AND [SUM_RUB] IS NULL) OR ([SUM_RUB] = @Original_SUM_RUB)) AND ((@IsNull_NSI_ORGANIZATION_ID = 1 AND [NSI_ORGANIZATION_ID] IS NULL) OR ([NSI_ORGANIZATION_ID] = @Original_NSI_ORGANIZATION_ID)) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)) AND ((@IsNull_PID = 1 AND [PID] IS NULL) OR ([PID] = @Original_PID)));
SELECT ID, NUMBER, TYPE, DATE, SUM_RUB, NSI_ORGANIZATION_ID, DESCRIPTION, LAST_UPDATE, LAST_UPDATE_USER, PID FROM PAYMENT_IN WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@NUMBER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@TYPE" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="TYPE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@DATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="DATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@SUM_RUB" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="SUM_RUB" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@NSI_ORGANIZATION_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_ORGANIZATION_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@DESCRIPTION" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DESCRIPTION" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NUMBER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_NUMBER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TYPE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TYPE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_TYPE" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="TYPE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_DATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="DATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SUM_RUB" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SUM_RUB" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_SUM_RUB" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="SUM_RUB" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NSI_ORGANIZATION_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_ORGANIZATION_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_NSI_ORGANIZATION_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_ORGANIZATION_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="FSO2.dbo.PAYMENT_IN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="NUMBER" DataSetColumn="NUMBER" />
              <Mapping SourceColumn="TYPE" DataSetColumn="TYPE" />
              <Mapping SourceColumn="DATE" DataSetColumn="DATE" />
              <Mapping SourceColumn="SUM_RUB" DataSetColumn="SUM_RUB" />
              <Mapping SourceColumn="NSI_ORGANIZATION_ID" DataSetColumn="NSI_ORGANIZATION_ID" />
              <Mapping SourceColumn="DESCRIPTION" DataSetColumn="DESCRIPTION" />
              <Mapping SourceColumn="LAST_UPDATE" DataSetColumn="LAST_UPDATE" />
              <Mapping SourceColumn="LAST_UPDATE_USER" DataSetColumn="LAST_UPDATE_USER" />
              <Mapping SourceColumn="PID" DataSetColumn="PID" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.PAYMENT_IN" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByID" GeneratorSourceName="FillByID" GetMethodModifier="Public" GetMethodName="GetDataByID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByID" UserSourceName="FillByID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT     ID, NUMBER, TYPE, DATE, SUM_RUB, NSI_ORGANIZATION_ID, DESCRIPTION, LAST_UPDATE, LAST_UPDATE_USER, PID
FROM         PAYMENT_IN
WHERE ID = @Id</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="Id" ColumnName="ID" DataSourceName="FSO2.dbo.PAYMENT_IN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Id" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.PAYMENT_IN" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByOrganizationId" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByOrganizationId" GeneratorSourceName="FillByOrganizationId" GetMethodModifier="Public" GetMethodName="GetDataByOrganizationId" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByOrganizationId" UserSourceName="FillByOrganizationId">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT DATE, DESCRIPTION, ID, LAST_UPDATE, LAST_UPDATE_USER, NSI_ORGANIZATION_ID, NUMBER, PID, SUM_RUB, TYPE FROM PAYMENT_IN WHERE (NSI_ORGANIZATION_ID = @OrgID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="OrgID" ColumnName="NSI_ORGANIZATION_ID" DataSourceName="FSO2.dbo.PAYMENT_IN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@OrgID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="NSI_ORGANIZATION_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.PAYMENT_IN" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByPaymentInItem" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByPaymentInItem" GeneratorSourceName="FillByPaymentInItem" GetMethodModifier="Public" GetMethodName="GetDataByPaymentInItem" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByPaymentInItem" UserSourceName="FillByPaymentInItem">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT     ID, NUMBER, TYPE, DATE, SUM_RUB, NSI_ORGANIZATION_ID, DESCRIPTION, LAST_UPDATE, LAST_UPDATE_USER, PID
FROM         PAYMENT_IN
WHERE ID = @ID</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="FSO2.dbo.PAYMENT_IN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="PAYMENT_IN_ITEMTableAdapter" GeneratorDataComponentClassName="PAYMENT_IN_ITEMTableAdapter" Name="PAYMENT_IN_ITEM" UserDataComponentName="PAYMENT_IN_ITEMTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.PAYMENT_IN_ITEM" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [PAYMENT_IN_ITEM] WHERE (([ID] = @Original_ID) AND ((@IsNull_PAYMENT_IN_ID = 1 AND [PAYMENT_IN_ID] IS NULL) OR ([PAYMENT_IN_ID] = @Original_PAYMENT_IN_ID)) AND ((@IsNull_PRODUCT_UNIT_ID = 1 AND [PRODUCT_UNIT_ID] IS NULL) OR ([PRODUCT_UNIT_ID] = @Original_PRODUCT_UNIT_ID)) AND ((@IsNull_SUM_CUR = 1 AND [SUM_CUR] IS NULL) OR ([SUM_CUR] = @Original_SUM_CUR)) AND ((@IsNull_SUM_RUB = 1 AND [SUM_RUB] IS NULL) OR ([SUM_RUB] = @Original_SUM_RUB)) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)) AND ((@IsNull_PID = 1 AND [PID] IS NULL) OR ([PID] = @Original_PID)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PAYMENT_IN_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PAYMENT_IN_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PAYMENT_IN_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PAYMENT_IN_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PRODUCT_UNIT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PRODUCT_UNIT_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PRODUCT_UNIT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PRODUCT_UNIT_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SUM_CUR" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SUM_CUR" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_SUM_CUR" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="SUM_CUR" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SUM_RUB" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SUM_RUB" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_SUM_RUB" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="SUM_RUB" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [PAYMENT_IN_ITEM] ([PAYMENT_IN_ID], [PRODUCT_UNIT_ID], [SUM_CUR], [SUM_RUB], [LAST_UPDATE], [LAST_UPDATE_USER], [PID]) VALUES (@PAYMENT_IN_ID, @PRODUCT_UNIT_ID, @SUM_CUR, @SUM_RUB, @LAST_UPDATE, @LAST_UPDATE_USER, @PID);
SELECT ID, PAYMENT_IN_ID, PRODUCT_UNIT_ID, SUM_CUR, SUM_RUB, LAST_UPDATE, LAST_UPDATE_USER, PID FROM PAYMENT_IN_ITEM WHERE (ID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PAYMENT_IN_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PAYMENT_IN_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PRODUCT_UNIT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PRODUCT_UNIT_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@SUM_CUR" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="SUM_CUR" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@SUM_RUB" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="SUM_RUB" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT     ID, PAYMENT_IN_ID, PRODUCT_UNIT_ID, SUM_CUR, SUM_RUB, LAST_UPDATE, LAST_UPDATE_USER, PID
FROM         PAYMENT_IN_ITEM</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [PAYMENT_IN_ITEM] SET [PAYMENT_IN_ID] = @PAYMENT_IN_ID, [PRODUCT_UNIT_ID] = @PRODUCT_UNIT_ID, [SUM_CUR] = @SUM_CUR, [SUM_RUB] = @SUM_RUB, [LAST_UPDATE] = @LAST_UPDATE, [LAST_UPDATE_USER] = @LAST_UPDATE_USER, [PID] = @PID WHERE (([ID] = @Original_ID) AND ((@IsNull_PAYMENT_IN_ID = 1 AND [PAYMENT_IN_ID] IS NULL) OR ([PAYMENT_IN_ID] = @Original_PAYMENT_IN_ID)) AND ((@IsNull_PRODUCT_UNIT_ID = 1 AND [PRODUCT_UNIT_ID] IS NULL) OR ([PRODUCT_UNIT_ID] = @Original_PRODUCT_UNIT_ID)) AND ((@IsNull_SUM_CUR = 1 AND [SUM_CUR] IS NULL) OR ([SUM_CUR] = @Original_SUM_CUR)) AND ((@IsNull_SUM_RUB = 1 AND [SUM_RUB] IS NULL) OR ([SUM_RUB] = @Original_SUM_RUB)) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)) AND ((@IsNull_PID = 1 AND [PID] IS NULL) OR ([PID] = @Original_PID)));
SELECT ID, PAYMENT_IN_ID, PRODUCT_UNIT_ID, SUM_CUR, SUM_RUB, LAST_UPDATE, LAST_UPDATE_USER, PID FROM PAYMENT_IN_ITEM WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PAYMENT_IN_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PAYMENT_IN_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PRODUCT_UNIT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PRODUCT_UNIT_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@SUM_CUR" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="SUM_CUR" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@SUM_RUB" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="SUM_RUB" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PAYMENT_IN_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PAYMENT_IN_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PAYMENT_IN_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PAYMENT_IN_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PRODUCT_UNIT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PRODUCT_UNIT_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PRODUCT_UNIT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PRODUCT_UNIT_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SUM_CUR" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SUM_CUR" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_SUM_CUR" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="SUM_CUR" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SUM_RUB" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SUM_RUB" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_SUM_RUB" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="SUM_RUB" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="FSO2.dbo.PAYMENT_IN_ITEM" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="PAYMENT_IN_ID" DataSetColumn="PAYMENT_IN_ID" />
              <Mapping SourceColumn="PRODUCT_UNIT_ID" DataSetColumn="PRODUCT_UNIT_ID" />
              <Mapping SourceColumn="SUM_CUR" DataSetColumn="SUM_CUR" />
              <Mapping SourceColumn="SUM_RUB" DataSetColumn="SUM_RUB" />
              <Mapping SourceColumn="LAST_UPDATE" DataSetColumn="LAST_UPDATE" />
              <Mapping SourceColumn="LAST_UPDATE_USER" DataSetColumn="LAST_UPDATE_USER" />
              <Mapping SourceColumn="PID" DataSetColumn="PID" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.PAYMENT_IN_ITEM" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByID" GeneratorSourceName="FillByID" GetMethodModifier="Public" GetMethodName="GetDataByID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByID" UserSourceName="FillByID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT     ID, PAYMENT_IN_ID, PRODUCT_UNIT_ID, SUM_CUR, SUM_RUB, LAST_UPDATE, LAST_UPDATE_USER, PID
FROM         PAYMENT_IN_ITEM
WHERE ID = @ID</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="FSO2.dbo.PAYMENT_IN_ITEM" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.PAYMENT_IN_ITEM" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByProductUnitID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByProductUnitID" GeneratorSourceName="FillByProductUnitID" GetMethodModifier="Public" GetMethodName="GetDataByProductUnitID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByProductUnitID" UserSourceName="FillByProductUnitID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT     ID, PAYMENT_IN_ID, PRODUCT_UNIT_ID, SUM_CUR, SUM_RUB, LAST_UPDATE, LAST_UPDATE_USER, PID
FROM         PAYMENT_IN_ITEM
WHERE PRODUCT_UNIT_ID = @ID</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="ID" ColumnName="PRODUCT_UNIT_ID" DataSourceName="FSO2.dbo.PAYMENT_IN_ITEM" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="PRODUCT_UNIT_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="PAYMENT_OUTTableAdapter" GeneratorDataComponentClassName="PAYMENT_OUTTableAdapter" Name="PAYMENT_OUT" UserDataComponentName="PAYMENT_OUTTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.PAYMENT_OUT" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [PAYMENT_OUT] WHERE (([ID] = @Original_ID) AND ((@IsNull_NUMBER = 1 AND [NUMBER] IS NULL) OR ([NUMBER] = @Original_NUMBER)) AND ((@IsNull_SUM_RUB = 1 AND [SUM_RUB] IS NULL) OR ([SUM_RUB] = @Original_SUM_RUB)) AND ((@IsNull_DATE = 1 AND [DATE] IS NULL) OR ([DATE] = @Original_DATE)) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)) AND ((@IsNull_PID = 1 AND [PID] IS NULL) OR ([PID] = @Original_PID)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NUMBER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_NUMBER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SUM_RUB" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SUM_RUB" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_SUM_RUB" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="SUM_RUB" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_DATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="DATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [PAYMENT_OUT] ([NUMBER], [SUM_RUB], [DATE], [LAST_UPDATE], [LAST_UPDATE_USER], [DESCRIPTION], [PID]) VALUES (@NUMBER, @SUM_RUB, @DATE, @LAST_UPDATE, @LAST_UPDATE_USER, @DESCRIPTION, @PID);
SELECT ID, NUMBER, SUM_RUB, DATE, LAST_UPDATE, LAST_UPDATE_USER, DESCRIPTION, PID FROM PAYMENT_OUT WHERE (ID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@NUMBER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@SUM_RUB" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="SUM_RUB" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@DATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="DATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@DESCRIPTION" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DESCRIPTION" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT     ID, NUMBER, SUM_RUB, DATE, LAST_UPDATE, LAST_UPDATE_USER, DESCRIPTION, PID
FROM         PAYMENT_OUT</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [PAYMENT_OUT] SET [NUMBER] = @NUMBER, [SUM_RUB] = @SUM_RUB, [DATE] = @DATE, [LAST_UPDATE] = @LAST_UPDATE, [LAST_UPDATE_USER] = @LAST_UPDATE_USER, [DESCRIPTION] = @DESCRIPTION, [PID] = @PID WHERE (([ID] = @Original_ID) AND ((@IsNull_NUMBER = 1 AND [NUMBER] IS NULL) OR ([NUMBER] = @Original_NUMBER)) AND ((@IsNull_SUM_RUB = 1 AND [SUM_RUB] IS NULL) OR ([SUM_RUB] = @Original_SUM_RUB)) AND ((@IsNull_DATE = 1 AND [DATE] IS NULL) OR ([DATE] = @Original_DATE)) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)) AND ((@IsNull_PID = 1 AND [PID] IS NULL) OR ([PID] = @Original_PID)));
SELECT ID, NUMBER, SUM_RUB, DATE, LAST_UPDATE, LAST_UPDATE_USER, DESCRIPTION, PID FROM PAYMENT_OUT WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@NUMBER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@SUM_RUB" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="SUM_RUB" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@DATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="DATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@DESCRIPTION" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DESCRIPTION" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NUMBER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_NUMBER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SUM_RUB" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SUM_RUB" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_SUM_RUB" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="SUM_RUB" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_DATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="DATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="FSO2.dbo.PAYMENT_OUT" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="NUMBER" DataSetColumn="NUMBER" />
              <Mapping SourceColumn="SUM_RUB" DataSetColumn="SUM_RUB" />
              <Mapping SourceColumn="DATE" DataSetColumn="DATE" />
              <Mapping SourceColumn="LAST_UPDATE" DataSetColumn="LAST_UPDATE" />
              <Mapping SourceColumn="LAST_UPDATE_USER" DataSetColumn="LAST_UPDATE_USER" />
              <Mapping SourceColumn="DESCRIPTION" DataSetColumn="DESCRIPTION" />
              <Mapping SourceColumn="PID" DataSetColumn="PID" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.PAYMENT_OUT" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByID" GeneratorSourceName="FillByID" GetMethodModifier="Public" GetMethodName="GetDataByID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByID" UserSourceName="FillByID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT DATE, DESCRIPTION, ID, LAST_UPDATE, LAST_UPDATE_USER, NUMBER, PID, SUM_RUB FROM PAYMENT_OUT WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="FSO2.dbo.PAYMENT_OUT" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.PAYMENT_OUT" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByOrgID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByOrgID" GeneratorSourceName="FillByOrgID" GetMethodModifier="Public" GetMethodName="GetDataByOrgID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByOrgID" UserSourceName="FillByOrgID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT DISTINCT 
                         PAYMENT_OUT.ID, PAYMENT_OUT.NUMBER, PAYMENT_OUT.SUM_RUB, PAYMENT_OUT.DATE, PAYMENT_OUT.LAST_UPDATE, 
                         PAYMENT_OUT.LAST_UPDATE_USER, PAYMENT_OUT.DESCRIPTION, PAYMENT_OUT.PID
FROM            PAYMENT_OUT INNER JOIN
                         PAY_OUT_ON_INV_IN ON PAYMENT_OUT.ID = PAY_OUT_ON_INV_IN.PAYMENT_OUT_ID INNER JOIN
                         INVOICE_IN ON PAY_OUT_ON_INV_IN.INVOICE_IN_ID = INVOICE_IN.ID INNER JOIN
                         NSI_ORGANIZATION ON INVOICE_IN.NSI_ORGANIZATION_ID = NSI_ORGANIZATION.ID
WHERE        (NSI_ORGANIZATION.ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="FSO2.dbo.NSI_ORGANIZATION" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="PRODUCT_COSTTableAdapter" GeneratorDataComponentClassName="PRODUCT_COSTTableAdapter" Name="PRODUCT_COST" UserDataComponentName="PRODUCT_COSTTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.PRODUCT_COST" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [PRODUCT_COST] WHERE (([ID] = @Original_ID) AND ((@IsNull_COST_PROTOCOL_ID = 1 AND [COST_PROTOCOL_ID] IS NULL) OR ([COST_PROTOCOL_ID] = @Original_COST_PROTOCOL_ID)) AND ((@IsNull_PRODUCT_UNIT_ID = 1 AND [PRODUCT_UNIT_ID] IS NULL) OR ([PRODUCT_UNIT_ID] = @Original_PRODUCT_UNIT_ID)) AND ((@IsNull_COST = 1 AND [COST] IS NULL) OR ([COST] = @Original_COST)) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)) AND ((@IsNull_PID = 1 AND [PID] IS NULL) OR ([PID] = @Original_PID)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_COST_PROTOCOL_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="COST_PROTOCOL_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_COST_PROTOCOL_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="COST_PROTOCOL_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PRODUCT_UNIT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PRODUCT_UNIT_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PRODUCT_UNIT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PRODUCT_UNIT_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_COST" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="COST" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_COST" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="COST" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [PRODUCT_COST] ([COST_PROTOCOL_ID], [PRODUCT_UNIT_ID], [COST], [LAST_UPDATE], [LAST_UPDATE_USER], [PID]) VALUES (@COST_PROTOCOL_ID, @PRODUCT_UNIT_ID, @COST, @LAST_UPDATE, @LAST_UPDATE_USER, @PID);
SELECT ID, COST_PROTOCOL_ID, PRODUCT_UNIT_ID, COST, LAST_UPDATE, LAST_UPDATE_USER, PID FROM PRODUCT_COST WHERE (ID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@COST_PROTOCOL_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="COST_PROTOCOL_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PRODUCT_UNIT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PRODUCT_UNIT_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@COST" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="COST" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT     ID, COST_PROTOCOL_ID, PRODUCT_UNIT_ID, COST, LAST_UPDATE, LAST_UPDATE_USER, PID
FROM         PRODUCT_COST</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [PRODUCT_COST] SET [COST_PROTOCOL_ID] = @COST_PROTOCOL_ID, [PRODUCT_UNIT_ID] = @PRODUCT_UNIT_ID, [COST] = @COST, [LAST_UPDATE] = @LAST_UPDATE, [LAST_UPDATE_USER] = @LAST_UPDATE_USER, [PID] = @PID WHERE (([ID] = @Original_ID) AND ((@IsNull_COST_PROTOCOL_ID = 1 AND [COST_PROTOCOL_ID] IS NULL) OR ([COST_PROTOCOL_ID] = @Original_COST_PROTOCOL_ID)) AND ((@IsNull_PRODUCT_UNIT_ID = 1 AND [PRODUCT_UNIT_ID] IS NULL) OR ([PRODUCT_UNIT_ID] = @Original_PRODUCT_UNIT_ID)) AND ((@IsNull_COST = 1 AND [COST] IS NULL) OR ([COST] = @Original_COST)) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)) AND ((@IsNull_PID = 1 AND [PID] IS NULL) OR ([PID] = @Original_PID)));
SELECT ID, COST_PROTOCOL_ID, PRODUCT_UNIT_ID, COST, LAST_UPDATE, LAST_UPDATE_USER, PID FROM PRODUCT_COST WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@COST_PROTOCOL_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="COST_PROTOCOL_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PRODUCT_UNIT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PRODUCT_UNIT_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@COST" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="COST" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_COST_PROTOCOL_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="COST_PROTOCOL_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_COST_PROTOCOL_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="COST_PROTOCOL_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PRODUCT_UNIT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PRODUCT_UNIT_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PRODUCT_UNIT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PRODUCT_UNIT_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_COST" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="COST" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_COST" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="COST" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="FSO2.dbo.PRODUCT_COST" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="COST_PROTOCOL_ID" DataSetColumn="COST_PROTOCOL_ID" />
              <Mapping SourceColumn="PRODUCT_UNIT_ID" DataSetColumn="PRODUCT_UNIT_ID" />
              <Mapping SourceColumn="COST" DataSetColumn="COST" />
              <Mapping SourceColumn="LAST_UPDATE" DataSetColumn="LAST_UPDATE" />
              <Mapping SourceColumn="LAST_UPDATE_USER" DataSetColumn="LAST_UPDATE_USER" />
              <Mapping SourceColumn="PID" DataSetColumn="PID" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.PRODUCT_COST" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByCostPrID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByCostPrID" GeneratorSourceName="FillByCostPrID" GetMethodModifier="Public" GetMethodName="GetDataByCostPrID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByCostPrID" UserSourceName="FillByCostPrID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT     ID, COST_PROTOCOL_ID, PRODUCT_UNIT_ID, COST, PID, LAST_UPDATE, LAST_UPDATE_USER
FROM         PRODUCT_COST
WHERE     (COST_PROTOCOL_ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="COST_PROTOCOL_ID" DataSourceName="FSO2.dbo.PRODUCT_COST" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="COST_PROTOCOL_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.PRODUCT_COST" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillForCostPrByProductsNameCPStage" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataForCostPrByProductsNameCPStage" GeneratorSourceName="FillForCostPrByProductsNameCPStage" GetMethodModifier="Public" GetMethodName="GetDataForCostPrByProductsNameCPStage" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataForCostPrByProductsNameCPStage" UserSourceName="FillForCostPrByProductsNameCPStage">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        PRODUCT_COST.ID, PRODUCT_COST.COST_PROTOCOL_ID, PRODUCT_COST.PRODUCT_UNIT_ID, PRODUCT_COST.COST, PRODUCT_COST.LAST_UPDATE, 
                         PRODUCT_COST.LAST_UPDATE_USER, PRODUCT_COST.PID
FROM            PRODUCT_COST INNER JOIN
                         PRODUCT_UNIT ON PRODUCT_COST.PRODUCT_UNIT_ID = PRODUCT_UNIT.ID
WHERE        (PRODUCT_UNIT.CP_STAGE_ID = @CpStageID) AND (PRODUCT_COST.PID = @PID) AND (PRODUCT_COST.COST_PROTOCOL_ID = @CostProocolId) AND 
                         (PRODUCT_UNIT.NAME = @ProdUnitName)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="CpStageID" ColumnName="CP_STAGE_ID" DataSourceName="FSO2.dbo.PRODUCT_UNIT" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@CpStageID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="CP_STAGE_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="PID" ColumnName="PID" DataSourceName="FSO2.dbo.PRODUCT_COST" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="CostProocolId" ColumnName="COST_PROTOCOL_ID" DataSourceName="FSO2.dbo.PRODUCT_COST" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@CostProocolId" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="COST_PROTOCOL_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="ProdUnitName" ColumnName="NAME" DataSourceName="FSO2.dbo.PRODUCT_UNIT" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@ProdUnitName" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="NAME" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="VAT_INV_ON_SERVICETableAdapter" GeneratorDataComponentClassName="VAT_INV_ON_SERVICETableAdapter" Name="VAT_INV_ON_SERVICE" UserDataComponentName="VAT_INV_ON_SERVICETableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VAT_INV_ON_SERVICE" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [VAT_INV_ON_SERVICE] WHERE (([ID] = @Original_ID) AND ([NSI_SERVICE_ID] = @Original_NSI_SERVICE_ID) AND ((@IsNull_QUANTITY = 1 AND [QUANTITY] IS NULL) OR ([QUANTITY] = @Original_QUANTITY)) AND ([VAT_INVOICE_ID] = @Original_VAT_INVOICE_ID) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)) AND ((@IsNull_PID = 1 AND [PID] IS NULL) OR ([PID] = @Original_PID)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_NSI_SERVICE_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_SERVICE_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_QUANTITY" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="QUANTITY" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Original_QUANTITY" Precision="18" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="QUANTITY" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_VAT_INVOICE_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="VAT_INVOICE_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [VAT_INV_ON_SERVICE] ([NSI_SERVICE_ID], [QUANTITY], [VAT_INVOICE_ID], [LAST_UPDATE], [LAST_UPDATE_USER], [PID]) VALUES (@NSI_SERVICE_ID, @QUANTITY, @VAT_INVOICE_ID, @LAST_UPDATE, @LAST_UPDATE_USER, @PID);
SELECT ID, NSI_SERVICE_ID, QUANTITY, VAT_INVOICE_ID, LAST_UPDATE, LAST_UPDATE_USER, PID FROM VAT_INV_ON_SERVICE WHERE (ID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@NSI_SERVICE_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_SERVICE_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@QUANTITY" Precision="18" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="QUANTITY" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@VAT_INVOICE_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="VAT_INVOICE_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        ID, NSI_SERVICE_ID, QUANTITY, VAT_INVOICE_ID, LAST_UPDATE, LAST_UPDATE_USER, PID
FROM            VAT_INV_ON_SERVICE</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [VAT_INV_ON_SERVICE] SET [NSI_SERVICE_ID] = @NSI_SERVICE_ID, [QUANTITY] = @QUANTITY, [VAT_INVOICE_ID] = @VAT_INVOICE_ID, [LAST_UPDATE] = @LAST_UPDATE, [LAST_UPDATE_USER] = @LAST_UPDATE_USER, [PID] = @PID WHERE (([ID] = @Original_ID) AND ([NSI_SERVICE_ID] = @Original_NSI_SERVICE_ID) AND ((@IsNull_QUANTITY = 1 AND [QUANTITY] IS NULL) OR ([QUANTITY] = @Original_QUANTITY)) AND ([VAT_INVOICE_ID] = @Original_VAT_INVOICE_ID) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)) AND ((@IsNull_PID = 1 AND [PID] IS NULL) OR ([PID] = @Original_PID)));
SELECT ID, NSI_SERVICE_ID, QUANTITY, VAT_INVOICE_ID, LAST_UPDATE, LAST_UPDATE_USER, PID FROM VAT_INV_ON_SERVICE WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@NSI_SERVICE_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_SERVICE_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@QUANTITY" Precision="18" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="QUANTITY" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@VAT_INVOICE_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="VAT_INVOICE_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_NSI_SERVICE_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_SERVICE_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_QUANTITY" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="QUANTITY" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Original_QUANTITY" Precision="18" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="QUANTITY" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_VAT_INVOICE_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="VAT_INVOICE_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="FSO2.dbo.VAT_INV_ON_SERVICE" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="NSI_SERVICE_ID" DataSetColumn="NSI_SERVICE_ID" />
              <Mapping SourceColumn="VAT_INVOICE_ID" DataSetColumn="VAT_INVOICE_ID" />
              <Mapping SourceColumn="LAST_UPDATE" DataSetColumn="LAST_UPDATE" />
              <Mapping SourceColumn="LAST_UPDATE_USER" DataSetColumn="LAST_UPDATE_USER" />
              <Mapping SourceColumn="PID" DataSetColumn="PID" />
              <Mapping SourceColumn="QUANTITY" DataSetColumn="QUANTITY" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VAT_INV_ON_SERVICE" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByID" GeneratorSourceName="FillByID" GetMethodModifier="Public" GetMethodName="GetDataByID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByID" UserSourceName="FillByID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        ID, NSI_SERVICE_ID, QUANTITY, VAT_INVOICE_ID, LAST_UPDATE, LAST_UPDATE_USER, PID
FROM            VAT_INV_ON_SERVICE
WHERE ID = @ID</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="FSO2.dbo.VAT_INV_ON_SERVICE" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="VAT_INVOICETableAdapter" GeneratorDataComponentClassName="VAT_INVOICETableAdapter" Name="VAT_INVOICE" UserDataComponentName="VAT_INVOICETableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VAT_INVOICE" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [VAT_INVOICE] WHERE (([ID] = @Original_ID) AND ([NUMBER] = @Original_NUMBER) AND ((@IsNull_DATE = 1 AND [DATE] IS NULL) OR ([DATE] = @Original_DATE)) AND ((@IsNull_SUM_RUB = 1 AND [SUM_RUB] IS NULL) OR ([SUM_RUB] = @Original_SUM_RUB)) AND ((@IsNull_TYPE = 1 AND [TYPE] IS NULL) OR ([TYPE] = @Original_TYPE)) AND ([IS_GUARANTY_LET] = @Original_IS_GUARANTY_LET) AND ((@IsNull_GUARANTY_LET_DATE = 1 AND [GUARANTY_LET_DATE] IS NULL) OR ([GUARANTY_LET_DATE] = @Original_GUARANTY_LET_DATE)) AND ((@IsNull_EXEC_TYPE = 1 AND [EXEC_TYPE] IS NULL) OR ([EXEC_TYPE] = @Original_EXEC_TYPE)) AND ((@IsNull_EXEC_NUMBER = 1 AND [EXEC_NUMBER] IS NULL) OR ([EXEC_NUMBER] = @Original_EXEC_NUMBER)) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)) AND ((@IsNull_PID = 1 AND [PID] IS NULL) OR ([PID] = @Original_PID)) AND ((@IsNull_NSI_ORGANIZATION_ID = 1 AND [NSI_ORGANIZATION_ID] IS NULL) OR ([NSI_ORGANIZATION_ID] = @Original_NSI_ORGANIZATION_ID)) AND ((@IsNull_INVOICE_OF_PAY_ADD_NUM = 1 AND [INVOICE_OF_PAY_ADD_NUM] IS NULL) OR ([INVOICE_OF_PAY_ADD_NUM] = @Original_INVOICE_OF_PAY_ADD_NUM)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_NUMBER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_DATE" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="DATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SUM_RUB" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SUM_RUB" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_SUM_RUB" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="SUM_RUB" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TYPE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TYPE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_TYPE" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TYPE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_IS_GUARANTY_LET" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IS_GUARANTY_LET" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GUARANTY_LET_DATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GUARANTY_LET_DATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_GUARANTY_LET_DATE" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="GUARANTY_LET_DATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_EXEC_TYPE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="EXEC_TYPE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_EXEC_TYPE" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="EXEC_TYPE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_EXEC_NUMBER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="EXEC_NUMBER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_EXEC_NUMBER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="EXEC_NUMBER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NSI_ORGANIZATION_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_ORGANIZATION_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_NSI_ORGANIZATION_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_ORGANIZATION_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_INVOICE_OF_PAY_ADD_NUM" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="INVOICE_OF_PAY_ADD_NUM" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_INVOICE_OF_PAY_ADD_NUM" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="INVOICE_OF_PAY_ADD_NUM" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [VAT_INVOICE] ([NUMBER], [DATE], [SUM_RUB], [TYPE], [IS_GUARANTY_LET], [GUARANTY_LET_DATE], [EXEC_TYPE], [EXEC_NUMBER], [LAST_UPDATE], [LAST_UPDATE_USER], [PID], [NSI_ORGANIZATION_ID], [DESCRIPTION], [INVOICE_OF_PAY_ADD_NUM]) VALUES (@NUMBER, @DATE, @SUM_RUB, @TYPE, @IS_GUARANTY_LET, @GUARANTY_LET_DATE, @EXEC_TYPE, @EXEC_NUMBER, @LAST_UPDATE, @LAST_UPDATE_USER, @PID, @NSI_ORGANIZATION_ID, @DESCRIPTION, @INVOICE_OF_PAY_ADD_NUM);
SELECT ID, NUMBER, DATE, SUM_RUB, TYPE, IS_GUARANTY_LET, GUARANTY_LET_DATE, EXEC_TYPE, EXEC_NUMBER, LAST_UPDATE, LAST_UPDATE_USER, PID, NSI_ORGANIZATION_ID, DESCRIPTION, INVOICE_OF_PAY_ADD_NUM FROM VAT_INVOICE WHERE (ID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@NUMBER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@DATE" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="DATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@SUM_RUB" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="SUM_RUB" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@TYPE" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TYPE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@IS_GUARANTY_LET" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IS_GUARANTY_LET" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@GUARANTY_LET_DATE" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="GUARANTY_LET_DATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@EXEC_TYPE" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="EXEC_TYPE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@EXEC_NUMBER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="EXEC_NUMBER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@NSI_ORGANIZATION_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_ORGANIZATION_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@DESCRIPTION" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DESCRIPTION" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@INVOICE_OF_PAY_ADD_NUM" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="INVOICE_OF_PAY_ADD_NUM" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        ID, NUMBER, DATE, SUM_RUB, TYPE, IS_GUARANTY_LET, GUARANTY_LET_DATE, EXEC_TYPE, EXEC_NUMBER, LAST_UPDATE, LAST_UPDATE_USER, PID, 
                         NSI_ORGANIZATION_ID, DESCRIPTION, INVOICE_OF_PAY_ADD_NUM
FROM            VAT_INVOICE</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [VAT_INVOICE] SET [NUMBER] = @NUMBER, [DATE] = @DATE, [SUM_RUB] = @SUM_RUB, [TYPE] = @TYPE, [IS_GUARANTY_LET] = @IS_GUARANTY_LET, [GUARANTY_LET_DATE] = @GUARANTY_LET_DATE, [EXEC_TYPE] = @EXEC_TYPE, [EXEC_NUMBER] = @EXEC_NUMBER, [LAST_UPDATE] = @LAST_UPDATE, [LAST_UPDATE_USER] = @LAST_UPDATE_USER, [PID] = @PID, [NSI_ORGANIZATION_ID] = @NSI_ORGANIZATION_ID, [DESCRIPTION] = @DESCRIPTION, [INVOICE_OF_PAY_ADD_NUM] = @INVOICE_OF_PAY_ADD_NUM WHERE (([ID] = @Original_ID) AND ([NUMBER] = @Original_NUMBER) AND ((@IsNull_DATE = 1 AND [DATE] IS NULL) OR ([DATE] = @Original_DATE)) AND ((@IsNull_SUM_RUB = 1 AND [SUM_RUB] IS NULL) OR ([SUM_RUB] = @Original_SUM_RUB)) AND ((@IsNull_TYPE = 1 AND [TYPE] IS NULL) OR ([TYPE] = @Original_TYPE)) AND ([IS_GUARANTY_LET] = @Original_IS_GUARANTY_LET) AND ((@IsNull_GUARANTY_LET_DATE = 1 AND [GUARANTY_LET_DATE] IS NULL) OR ([GUARANTY_LET_DATE] = @Original_GUARANTY_LET_DATE)) AND ((@IsNull_EXEC_TYPE = 1 AND [EXEC_TYPE] IS NULL) OR ([EXEC_TYPE] = @Original_EXEC_TYPE)) AND ((@IsNull_EXEC_NUMBER = 1 AND [EXEC_NUMBER] IS NULL) OR ([EXEC_NUMBER] = @Original_EXEC_NUMBER)) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)) AND ((@IsNull_PID = 1 AND [PID] IS NULL) OR ([PID] = @Original_PID)) AND ((@IsNull_NSI_ORGANIZATION_ID = 1 AND [NSI_ORGANIZATION_ID] IS NULL) OR ([NSI_ORGANIZATION_ID] = @Original_NSI_ORGANIZATION_ID)) AND ((@IsNull_INVOICE_OF_PAY_ADD_NUM = 1 AND [INVOICE_OF_PAY_ADD_NUM] IS NULL) OR ([INVOICE_OF_PAY_ADD_NUM] = @Original_INVOICE_OF_PAY_ADD_NUM)));
SELECT ID, NUMBER, DATE, SUM_RUB, TYPE, IS_GUARANTY_LET, GUARANTY_LET_DATE, EXEC_TYPE, EXEC_NUMBER, LAST_UPDATE, LAST_UPDATE_USER, PID, NSI_ORGANIZATION_ID, DESCRIPTION, INVOICE_OF_PAY_ADD_NUM FROM VAT_INVOICE WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@NUMBER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@DATE" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="DATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@SUM_RUB" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="SUM_RUB" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@TYPE" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TYPE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@IS_GUARANTY_LET" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IS_GUARANTY_LET" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@GUARANTY_LET_DATE" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="GUARANTY_LET_DATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@EXEC_TYPE" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="EXEC_TYPE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@EXEC_NUMBER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="EXEC_NUMBER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@NSI_ORGANIZATION_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_ORGANIZATION_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@DESCRIPTION" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DESCRIPTION" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@INVOICE_OF_PAY_ADD_NUM" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="INVOICE_OF_PAY_ADD_NUM" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_NUMBER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_DATE" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="DATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SUM_RUB" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SUM_RUB" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Currency" Direction="Input" ParameterName="@Original_SUM_RUB" Precision="0" ProviderType="Money" Scale="0" Size="0" SourceColumn="SUM_RUB" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TYPE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TYPE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_TYPE" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TYPE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_IS_GUARANTY_LET" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="IS_GUARANTY_LET" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GUARANTY_LET_DATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GUARANTY_LET_DATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_GUARANTY_LET_DATE" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="GUARANTY_LET_DATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_EXEC_TYPE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="EXEC_TYPE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_EXEC_TYPE" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="EXEC_TYPE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_EXEC_NUMBER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="EXEC_NUMBER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_EXEC_NUMBER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="EXEC_NUMBER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NSI_ORGANIZATION_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_ORGANIZATION_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_NSI_ORGANIZATION_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_ORGANIZATION_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_INVOICE_OF_PAY_ADD_NUM" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="INVOICE_OF_PAY_ADD_NUM" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_INVOICE_OF_PAY_ADD_NUM" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="INVOICE_OF_PAY_ADD_NUM" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="FSO2.dbo.VAT_INVOICE" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="NUMBER" DataSetColumn="NUMBER" />
              <Mapping SourceColumn="DATE" DataSetColumn="DATE" />
              <Mapping SourceColumn="SUM_RUB" DataSetColumn="SUM_RUB" />
              <Mapping SourceColumn="TYPE" DataSetColumn="TYPE" />
              <Mapping SourceColumn="IS_GUARANTY_LET" DataSetColumn="IS_GUARANTY_LET" />
              <Mapping SourceColumn="GUARANTY_LET_DATE" DataSetColumn="GUARANTY_LET_DATE" />
              <Mapping SourceColumn="EXEC_TYPE" DataSetColumn="EXEC_TYPE" />
              <Mapping SourceColumn="EXEC_NUMBER" DataSetColumn="EXEC_NUMBER" />
              <Mapping SourceColumn="LAST_UPDATE" DataSetColumn="LAST_UPDATE" />
              <Mapping SourceColumn="LAST_UPDATE_USER" DataSetColumn="LAST_UPDATE_USER" />
              <Mapping SourceColumn="PID" DataSetColumn="PID" />
              <Mapping SourceColumn="NSI_ORGANIZATION_ID" DataSetColumn="NSI_ORGANIZATION_ID" />
              <Mapping SourceColumn="DESCRIPTION" DataSetColumn="DESCRIPTION" />
              <Mapping SourceColumn="INVOICE_OF_PAY_ADD_NUM" DataSetColumn="INVOICE_OF_PAY_ADD_NUM" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VAT_INVOICE" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByID" GeneratorSourceName="FillByID" GetMethodModifier="Public" GetMethodName="GetDataByID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByID" UserSourceName="FillByID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT DATE, DESCRIPTION, EXEC_NUMBER, EXEC_TYPE, GUARANTY_LET_DATE, ID, INVOICE_OF_PAY_ADD_NUM, IS_GUARANTY_LET, LAST_UPDATE, LAST_UPDATE_USER, NSI_ORGANIZATION_ID, NUMBER, PID, SUM_RUB, TYPE FROM VAT_INVOICE WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="FSO2.dbo.VAT_INVOICE" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VAT_INVOICE" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByPid" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByPid" GeneratorSourceName="FillByPid" GetMethodModifier="Public" GetMethodName="GetDataByPid" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByPid" UserSourceName="FillByPid">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT DATE, DESCRIPTION, EXEC_NUMBER, EXEC_TYPE, GUARANTY_LET_DATE, ID, INVOICE_OF_PAY_ADD_NUM, IS_GUARANTY_LET, LAST_UPDATE, LAST_UPDATE_USER, NSI_ORGANIZATION_ID, NUMBER, PID, SUM_RUB, TYPE FROM VAT_INVOICE WHERE (PID = @PID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="PID" ColumnName="PID" DataSourceName="FSO2.dbo.VAT_INVOICE" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="PRODUCT_UNITTableAdapter" GeneratorDataComponentClassName="PRODUCT_UNITTableAdapter" Name="PRODUCT_UNIT" UserDataComponentName="PRODUCT_UNITTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.PRODUCT_UNIT" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [PRODUCT_UNIT] WHERE (([ID] = @Original_ID) AND ([CP_STAGE_ID] = @Original_CP_STAGE_ID) AND ((@IsNull_TYPE = 1 AND [TYPE] IS NULL) OR ([TYPE] = @Original_TYPE)) AND ((@IsNull_NSI_PRODUCT_ID = 1 AND [NSI_PRODUCT_ID] IS NULL) OR ([NSI_PRODUCT_ID] = @Original_NSI_PRODUCT_ID)) AND ((@IsNull_NAME = 1 AND [NAME] IS NULL) OR ([NAME] = @Original_NAME)) AND ((@IsNull_DIRECT_NUMBER = 1 AND [DIRECT_NUMBER] IS NULL) OR ([DIRECT_NUMBER] = @Original_DIRECT_NUMBER)) AND ((@IsNull_VAT_INVOICE_ID = 1 AND [VAT_INVOICE_ID] IS NULL) OR ([VAT_INVOICE_ID] = @Original_VAT_INVOICE_ID)) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)) AND ((@IsNull_GUILD_BILL_NUMBER = 1 AND [GUILD_BILL_NUMBER] IS NULL) OR ([GUILD_BILL_NUMBER] = @Original_GUILD_BILL_NUMBER)) AND ((@IsNull_PID = 1 AND [PID] IS NULL) OR ([PID] = @Original_PID)) AND ((@IsNull_NSI_PRODUCT_STATE_ID = 1 AND [NSI_PRODUCT_STATE_ID] IS NULL) OR ([NSI_PRODUCT_STATE_ID] = @Original_NSI_PRODUCT_STATE_ID)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_CP_STAGE_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CP_STAGE_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TYPE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TYPE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_TYPE" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="TYPE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NSI_PRODUCT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_PRODUCT_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_NSI_PRODUCT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_PRODUCT_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NAME" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NAME" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NAME" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DIRECT_NUMBER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DIRECT_NUMBER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_DIRECT_NUMBER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DIRECT_NUMBER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_VAT_INVOICE_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="VAT_INVOICE_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_VAT_INVOICE_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="VAT_INVOICE_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GUILD_BILL_NUMBER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GUILD_BILL_NUMBER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GUILD_BILL_NUMBER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GUILD_BILL_NUMBER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NSI_PRODUCT_STATE_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_PRODUCT_STATE_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_NSI_PRODUCT_STATE_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_PRODUCT_STATE_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [PRODUCT_UNIT] ([CP_STAGE_ID], [TYPE], [NSI_PRODUCT_ID], [NAME], [DIRECT_NUMBER], [VAT_INVOICE_ID], [LAST_UPDATE], [LAST_UPDATE_USER], [GUILD_BILL_NUMBER], [PID], [NSI_PRODUCT_STATE_ID]) VALUES (@CP_STAGE_ID, @TYPE, @NSI_PRODUCT_ID, @NAME, @DIRECT_NUMBER, @VAT_INVOICE_ID, @LAST_UPDATE, @LAST_UPDATE_USER, @GUILD_BILL_NUMBER, @PID, @NSI_PRODUCT_STATE_ID);
SELECT ID, CP_STAGE_ID, TYPE, NSI_PRODUCT_ID, NAME, DIRECT_NUMBER, VAT_INVOICE_ID, LAST_UPDATE, LAST_UPDATE_USER, GUILD_BILL_NUMBER, PID, NSI_PRODUCT_STATE_ID FROM PRODUCT_UNIT WHERE (ID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@CP_STAGE_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CP_STAGE_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@TYPE" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="TYPE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@NSI_PRODUCT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_PRODUCT_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NAME" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@DIRECT_NUMBER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DIRECT_NUMBER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@VAT_INVOICE_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="VAT_INVOICE_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GUILD_BILL_NUMBER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GUILD_BILL_NUMBER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@NSI_PRODUCT_STATE_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_PRODUCT_STATE_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        ID, CP_STAGE_ID, TYPE, NSI_PRODUCT_ID, NAME, DIRECT_NUMBER, VAT_INVOICE_ID, LAST_UPDATE, LAST_UPDATE_USER, GUILD_BILL_NUMBER, PID, 
                         NSI_PRODUCT_STATE_ID
FROM            PRODUCT_UNIT</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [PRODUCT_UNIT] SET [CP_STAGE_ID] = @CP_STAGE_ID, [TYPE] = @TYPE, [NSI_PRODUCT_ID] = @NSI_PRODUCT_ID, [NAME] = @NAME, [DIRECT_NUMBER] = @DIRECT_NUMBER, [VAT_INVOICE_ID] = @VAT_INVOICE_ID, [LAST_UPDATE] = @LAST_UPDATE, [LAST_UPDATE_USER] = @LAST_UPDATE_USER, [GUILD_BILL_NUMBER] = @GUILD_BILL_NUMBER, [PID] = @PID, [NSI_PRODUCT_STATE_ID] = @NSI_PRODUCT_STATE_ID WHERE (([ID] = @Original_ID) AND ([CP_STAGE_ID] = @Original_CP_STAGE_ID) AND ((@IsNull_TYPE = 1 AND [TYPE] IS NULL) OR ([TYPE] = @Original_TYPE)) AND ((@IsNull_NSI_PRODUCT_ID = 1 AND [NSI_PRODUCT_ID] IS NULL) OR ([NSI_PRODUCT_ID] = @Original_NSI_PRODUCT_ID)) AND ((@IsNull_NAME = 1 AND [NAME] IS NULL) OR ([NAME] = @Original_NAME)) AND ((@IsNull_DIRECT_NUMBER = 1 AND [DIRECT_NUMBER] IS NULL) OR ([DIRECT_NUMBER] = @Original_DIRECT_NUMBER)) AND ((@IsNull_VAT_INVOICE_ID = 1 AND [VAT_INVOICE_ID] IS NULL) OR ([VAT_INVOICE_ID] = @Original_VAT_INVOICE_ID)) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)) AND ((@IsNull_GUILD_BILL_NUMBER = 1 AND [GUILD_BILL_NUMBER] IS NULL) OR ([GUILD_BILL_NUMBER] = @Original_GUILD_BILL_NUMBER)) AND ((@IsNull_PID = 1 AND [PID] IS NULL) OR ([PID] = @Original_PID)) AND ((@IsNull_NSI_PRODUCT_STATE_ID = 1 AND [NSI_PRODUCT_STATE_ID] IS NULL) OR ([NSI_PRODUCT_STATE_ID] = @Original_NSI_PRODUCT_STATE_ID)));
SELECT ID, CP_STAGE_ID, TYPE, NSI_PRODUCT_ID, NAME, DIRECT_NUMBER, VAT_INVOICE_ID, LAST_UPDATE, LAST_UPDATE_USER, GUILD_BILL_NUMBER, PID, NSI_PRODUCT_STATE_ID FROM PRODUCT_UNIT WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@CP_STAGE_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CP_STAGE_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@TYPE" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="TYPE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@NSI_PRODUCT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_PRODUCT_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NAME" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@DIRECT_NUMBER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DIRECT_NUMBER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@VAT_INVOICE_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="VAT_INVOICE_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GUILD_BILL_NUMBER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GUILD_BILL_NUMBER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@NSI_PRODUCT_STATE_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_PRODUCT_STATE_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_CP_STAGE_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CP_STAGE_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TYPE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TYPE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_TYPE" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="TYPE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NSI_PRODUCT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_PRODUCT_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_NSI_PRODUCT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_PRODUCT_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NAME" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NAME" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NAME" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DIRECT_NUMBER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DIRECT_NUMBER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_DIRECT_NUMBER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DIRECT_NUMBER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_VAT_INVOICE_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="VAT_INVOICE_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_VAT_INVOICE_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="VAT_INVOICE_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_GUILD_BILL_NUMBER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GUILD_BILL_NUMBER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GUILD_BILL_NUMBER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GUILD_BILL_NUMBER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NSI_PRODUCT_STATE_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_PRODUCT_STATE_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_NSI_PRODUCT_STATE_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_PRODUCT_STATE_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="FSO2.dbo.PRODUCT_UNIT" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="CP_STAGE_ID" DataSetColumn="CP_STAGE_ID" />
              <Mapping SourceColumn="TYPE" DataSetColumn="TYPE" />
              <Mapping SourceColumn="NSI_PRODUCT_ID" DataSetColumn="NSI_PRODUCT_ID" />
              <Mapping SourceColumn="NAME" DataSetColumn="NAME" />
              <Mapping SourceColumn="VAT_INVOICE_ID" DataSetColumn="VAT_INVOICE_ID" />
              <Mapping SourceColumn="LAST_UPDATE" DataSetColumn="LAST_UPDATE" />
              <Mapping SourceColumn="LAST_UPDATE_USER" DataSetColumn="LAST_UPDATE_USER" />
              <Mapping SourceColumn="PID" DataSetColumn="PID" />
              <Mapping SourceColumn="NSI_PRODUCT_STATE_ID" DataSetColumn="NSI_PRODUCT_STATE_ID" />
              <Mapping SourceColumn="DIRECT_NUMBER" DataSetColumn="DIRECT_NUMBER" />
              <Mapping SourceColumn="GUILD_BILL_NUMBER" DataSetColumn="GUILD_BILL_NUMBER" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.PRODUCT_UNIT" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByCPStageID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByCPStageID" GeneratorSourceName="FillByCPStageID" GetMethodModifier="Public" GetMethodName="GetDataByCPStageID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByCPStageID" UserSourceName="FillByCPStageID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT CP_STAGE_ID, DIRECT_NUMBER, GUILD_BILL_NUMBER, ID, LAST_UPDATE, LAST_UPDATE_USER, NAME, NSI_PRODUCT_ID, NSI_PRODUCT_STATE_ID, PID, TYPE, VAT_INVOICE_ID FROM PRODUCT_UNIT WHERE (CP_STAGE_ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="CP_STAGE_ID" DataSourceName="FSO2.dbo.PRODUCT_UNIT" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="CP_STAGE_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.PRODUCT_UNIT" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByID" GeneratorSourceName="FillByID" GetMethodModifier="Public" GetMethodName="GetDataByID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByID" UserSourceName="FillByID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        ID, CP_STAGE_ID, TYPE, NSI_PRODUCT_ID, NAME, DIRECT_NUMBER, VAT_INVOICE_ID, LAST_UPDATE, LAST_UPDATE_USER, GUILD_BILL_NUMBER, PID, 
                         NSI_PRODUCT_STATE_ID
FROM            PRODUCT_UNIT
WHERE ID = @ID</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="FSO2.dbo.PRODUCT_UNIT" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.PRODUCT_UNIT" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillForCostPrAddUnits" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataForCostPrAddUnits" GeneratorSourceName="FillForCostPrAddUnits" GetMethodModifier="Public" GetMethodName="GetDataForCostPrAddUnits" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataForCostPrAddUnits" UserSourceName="FillForCostPrAddUnits">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT TOP (@Count) CP_STAGE_ID, DIRECT_NUMBER, GUILD_BILL_NUMBER, ID, LAST_UPDATE, LAST_UPDATE_USER, NAME, NSI_PRODUCT_ID, NSI_PRODUCT_STATE_ID, PID, TYPE, VAT_INVOICE_ID FROM PRODUCT_UNIT WHERE (PID = @PID) AND (CP_STAGE_ID = @CP_STAGE_ID) AND (NOT (ID IN (SELECT PRODUCT_UNIT_ID FROM PRODUCT_COST AS PC))) AND (NAME = @Name)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="Count" ColumnName="" DataSourceName="" DataTypeServer="unknown" DbType="Int32" Direction="Input" ParameterName="@Count" Precision="0" Scale="0" Size="0" SourceColumn="" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="PID" ColumnName="PID" DataSourceName="FSO2.dbo.PRODUCT_UNIT" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="CP_STAGE_ID" ColumnName="CP_STAGE_ID" DataSourceName="FSO2.dbo.PRODUCT_UNIT" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@CP_STAGE_ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="CP_STAGE_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="Name" ColumnName="NAME" DataSourceName="FSO2.dbo.PRODUCT_UNIT" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@Name" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="NAME" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.getPUPaySumCur" DbObjectType="Function" GenerateShortCommands="true" GeneratorSourceName="getPUPaySumCur" Modifier="Public" Name="getPUPaySumCur" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="getPUPaySumCur">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.getPUPaySumCur</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="money" DbType="Currency" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="19" ProviderType="Money" Scale="4" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@PUId" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.getPUPaySumRub" DbObjectType="Function" GenerateShortCommands="true" GeneratorSourceName="getPUPaySumRub" Modifier="Public" Name="getPUPaySumRub" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="getPUPaySumRub">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.getPUPaySumRub</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="money" DbType="Currency" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="19" ProviderType="Money" Scale="4" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@PUId" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="VIEW_SEARCH_INVOICE_INTableAdapter" GeneratorDataComponentClassName="VIEW_SEARCH_INVOICE_INTableAdapter" Name="VIEW_SEARCH_INVOICE_IN" UserDataComponentName="VIEW_SEARCH_INVOICE_INTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_SEARCH_INVOICE_IN" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        ID, NUMBER, DATE, REG_NUMBER, SUM, SHORT_NAME_CURRENCY, SHORT_NAME_ORG, NSI_ORGANIZATION_ID, NSI_CONTRACT_ID
FROM            VIEW_SEARCH_INVOICE_IN</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="NUMBER" DataSetColumn="NUMBER" />
              <Mapping SourceColumn="DATE" DataSetColumn="DATE" />
              <Mapping SourceColumn="REG_NUMBER" DataSetColumn="REG_NUMBER" />
              <Mapping SourceColumn="SUM" DataSetColumn="SUM" />
              <Mapping SourceColumn="SHORT_NAME_CURRENCY" DataSetColumn="SHORT_NAME_CURRENCY" />
              <Mapping SourceColumn="SHORT_NAME_ORG" DataSetColumn="SHORT_NAME_ORG" />
              <Mapping SourceColumn="NSI_ORGANIZATION_ID" DataSetColumn="NSI_ORGANIZATION_ID" />
              <Mapping SourceColumn="NSI_CONTRACT_ID" DataSetColumn="NSI_CONTRACT_ID" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_SEARCH_INVOICE_IN" DbObjectType="View" FillMethodModifier="Public" FillMethodName="FillByContractId" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByContractId" GeneratorSourceName="FillByContractId" GetMethodModifier="Public" GetMethodName="GetDataByContractId" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByContractId" UserSourceName="FillByContractId">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        ID, NUMBER, DATE, REG_NUMBER, SUM, SHORT_NAME_CURRENCY, SHORT_NAME_ORG, NSI_ORGANIZATION_ID, NSI_CONTRACT_ID
FROM            VIEW_SEARCH_INVOICE_IN WHERE NSI_CONTRACT_ID = @ContractID</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="ContractID" ColumnName="NSI_CONTRACT_ID" DataSourceName="FSO2.dbo.VIEW_SEARCH_INVOICE_IN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ContractID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="NSI_CONTRACT_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_SEARCH_INVOICE_IN" DbObjectType="View" FillMethodModifier="Public" FillMethodName="FillByOrganizationId" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByOrganizationId" GeneratorSourceName="FillByOrganizationId" GetMethodModifier="Public" GetMethodName="GetDataByOrganizationId" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByOrganizationId" UserSourceName="FillByOrganizationId">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT DATE, ID, NSI_CONTRACT_ID, NSI_ORGANIZATION_ID, NUMBER, REG_NUMBER, SHORT_NAME_CURRENCY, SHORT_NAME_ORG, SUM FROM VIEW_SEARCH_INVOICE_IN WHERE (NSI_ORGANIZATION_ID = @OrgID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="OrgID" ColumnName="NSI_ORGANIZATION_ID" DataSourceName="FSO2.dbo.VIEW_SEARCH_INVOICE_IN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@OrgID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="NSI_ORGANIZATION_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="VIEW_SEARCH_CONTRACTTableAdapter" GeneratorDataComponentClassName="VIEW_SEARCH_CONTRACTTableAdapter" Name="VIEW_SEARCH_CONTRACT" UserDataComponentName="VIEW_SEARCH_CONTRACTTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_SEARCH_CONTRACT" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        ID, NUMBER, START_DATE, END_DATE, TYPE_DOC, SHORT_NAME, NSI_ORGANIZATION_ID, PID, PARENT_CONTRACT_ID,PROD_GROUPS
FROM            VIEW_SEARCH_CONTRACT</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="NUMBER" DataSetColumn="NUMBER" />
              <Mapping SourceColumn="START_DATE" DataSetColumn="START_DATE" />
              <Mapping SourceColumn="END_DATE" DataSetColumn="END_DATE" />
              <Mapping SourceColumn="TYPE_DOC" DataSetColumn="TYPE_DOC" />
              <Mapping SourceColumn="SHORT_NAME" DataSetColumn="SHORT_NAME" />
              <Mapping SourceColumn="NSI_ORGANIZATION_ID" DataSetColumn="NSI_ORGANIZATION_ID" />
              <Mapping SourceColumn="PID" DataSetColumn="PID" />
              <Mapping SourceColumn="PARENT_CONTRACT_ID" DataSetColumn="PARENT_CONTRACT_ID" />
              <Mapping SourceColumn="PROD_GROUPS" DataSetColumn="PROD_GROUPS" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_SEARCH_CONTRACT" DbObjectType="View" FillMethodModifier="Public" FillMethodName="FillByOrganizationId" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByOrganizationId" GeneratorSourceName="FillByOrganizationId" GetMethodModifier="Public" GetMethodName="GetDataByOrganizationId" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByOrganizationId" UserSourceName="FillByOrganizationId">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT END_DATE, ID, NSI_ORGANIZATION_ID, NUMBER, PARENT_CONTRACT_ID, PID, PROD_GROUPS, SHORT_NAME, START_DATE, TYPE_DOC FROM VIEW_SEARCH_CONTRACT WHERE (NSI_ORGANIZATION_ID = @OrgID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="OrgID" ColumnName="NSI_ORGANIZATION_ID" DataSourceName="FSO2.dbo.VIEW_SEARCH_CONTRACT" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@OrgID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="NSI_ORGANIZATION_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="PRODUCT_UNIT_BY_CPSTAGESTableAdapter" GeneratorDataComponentClassName="PRODUCT_UNIT_BY_CPSTAGESTableAdapter" Name="PRODUCT_UNIT_BY_CPSTAGES" UserDataComponentName="PRODUCT_UNIT_BY_CPSTAGESTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="FillbyCPStageId" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetDataCPStageId" GeneratorSourceName="FillbyCPStageId" GetMethodModifier="Public" GetMethodName="GetDataCPStageId" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetDataCPStageId" UserSourceName="FillbyCPStageId">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        PRODUCT_UNIT.NAME, COUNT(PRODUCT_UNIT.NAME) AS COUNT, PRODUCT_UNIT.CP_STAGE_ID, NSI_METER.SHORT_NAME AS NSI_METER_NAME, 
                         PRODUCT_UNIT.NSI_PRODUCT_ID, PRODUCT_UNIT.TYPE
FROM            NSI_METER RIGHT OUTER JOIN
                         NSI_PRODUCT ON NSI_METER.ID = NSI_PRODUCT.NSI_METER_ID RIGHT OUTER JOIN
                         PRODUCT_UNIT ON NSI_PRODUCT.ID = PRODUCT_UNIT.NSI_PRODUCT_ID
WHERE        (PRODUCT_UNIT.CP_STAGE_ID = @ID)
GROUP BY PRODUCT_UNIT.NAME, PRODUCT_UNIT.CP_STAGE_ID, NSI_METER.SHORT_NAME, PRODUCT_UNIT.NSI_PRODUCT_ID, PRODUCT_UNIT.TYPE</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="ID" ColumnName="CP_STAGE_ID" DataSourceName="FSO2.dbo.PRODUCT_UNIT" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="CP_STAGE_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="NAME" DataSetColumn="NAME" />
              <Mapping SourceColumn="CP_STAGE_ID" DataSetColumn="CP_STAGE_ID" />
              <Mapping SourceColumn="COUNT" DataSetColumn="COUNT" />
              <Mapping SourceColumn="NSI_METER_NAME" DataSetColumn="NSI_METER_NAME" />
              <Mapping SourceColumn="NSI_PRODUCT_ID" DataSetColumn="NSI_PRODUCT_ID" />
              <Mapping SourceColumn="TYPE" DataSetColumn="TYPE" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="View_SEARCH_CALENDAR_PLANTableAdapter" GeneratorDataComponentClassName="View_SEARCH_CALENDAR_PLANTableAdapter" Name="View_SEARCH_CALENDAR_PLAN" UserDataComponentName="View_SEARCH_CALENDAR_PLANTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.View_SEARCH_CALENDAR_PLAN" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        ID, NUMBER, START_DATE, END_DATE, CONTRACT_ID, PID, CONTRACT_NUMBER, CONTRACT_TYPE_DOC, NSI_ORG_NAME,PROD_GROUPS
FROM            View_SEARCH_CALENDAR_PLAN</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="NUMBER" DataSetColumn="NUMBER" />
              <Mapping SourceColumn="START_DATE" DataSetColumn="START_DATE" />
              <Mapping SourceColumn="END_DATE" DataSetColumn="END_DATE" />
              <Mapping SourceColumn="CONTRACT_ID" DataSetColumn="CONTRACT_ID" />
              <Mapping SourceColumn="PID" DataSetColumn="PID" />
              <Mapping SourceColumn="CONTRACT_NUMBER" DataSetColumn="CONTRACT_NUMBER" />
              <Mapping SourceColumn="CONTRACT_TYPE_DOC" DataSetColumn="CONTRACT_TYPE_DOC" />
              <Mapping SourceColumn="NSI_ORG_NAME" DataSetColumn="NSI_ORG_NAME" />
              <Mapping SourceColumn="PROD_GROUPS" DataSetColumn="PROD_GROUPS" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.View_SEARCH_CALENDAR_PLAN" DbObjectType="View" FillMethodModifier="Public" FillMethodName="FillByContractId" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByContractId" GeneratorSourceName="FillByContractId" GetMethodModifier="Public" GetMethodName="GetDataByContractId" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByContractId" UserSourceName="FillByContractId">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT CONTRACT_ID, CONTRACT_NUMBER, CONTRACT_TYPE_DOC, END_DATE, ID, NSI_ORG_NAME, NUMBER, PID, PROD_GROUPS, START_DATE FROM View_SEARCH_CALENDAR_PLAN WHERE (CONTRACT_ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="ID" ColumnName="CONTRACT_ID" DataSourceName="FSO2.dbo.View_SEARCH_CALENDAR_PLAN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="CONTRACT_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ViewSearchProductUnitTableAdapter" GeneratorDataComponentClassName="ViewSearchProductUnitTableAdapter" Name="ViewSearchProductUnit" UserDataComponentName="ViewSearchProductUnitTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.ViewSearchProductUnit" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        PRODUCT_UNIT_ID, PRODUCT_UNIT_TYPE, NSI_PRODUCT_ID, PRODUCT_UNIT_NAME, PRODUCT_UNIT_PID, METER_NAME, METER_ID, CP_STAGE_ID, 
                         VAT_INVOICE_ID, DIRECT_NUMBER, GUILD_BILL_NUMBER, COUNT
FROM            ViewSearchProductUnit</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="PRODUCT_UNIT_ID" DataSetColumn="PRODUCT_UNIT_ID" />
              <Mapping SourceColumn="PRODUCT_UNIT_TYPE" DataSetColumn="PRODUCT_UNIT_TYPE" />
              <Mapping SourceColumn="NSI_PRODUCT_ID" DataSetColumn="NSI_PRODUCT_ID" />
              <Mapping SourceColumn="PRODUCT_UNIT_NAME" DataSetColumn="PRODUCT_UNIT_NAME" />
              <Mapping SourceColumn="PRODUCT_UNIT_PID" DataSetColumn="PRODUCT_UNIT_PID" />
              <Mapping SourceColumn="METER_NAME" DataSetColumn="METER_NAME" />
              <Mapping SourceColumn="METER_ID" DataSetColumn="METER_ID" />
              <Mapping SourceColumn="CP_STAGE_ID" DataSetColumn="CP_STAGE_ID" />
              <Mapping SourceColumn="VAT_INVOICE_ID" DataSetColumn="VAT_INVOICE_ID" />
              <Mapping SourceColumn="COUNT" DataSetColumn="COUNT" />
              <Mapping SourceColumn="DIRECT_NUMBER" DataSetColumn="DIRECT_NUMBER" />
              <Mapping SourceColumn="GUILD_BILL_NUMBER" DataSetColumn="GUILD_BILL_NUMBER" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.ViewSearchProductUnit" DbObjectType="View" FillMethodModifier="Public" FillMethodName="FillByCalendarPlanId" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByCalendarPlanId" GeneratorSourceName="FillByCalendarPlanId" GetMethodModifier="Public" GetMethodName="GetDataByCalendarPlanId" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByCalendarPlanId" UserSourceName="FillByCalendarPlanId">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        ViewSearchProductUnit.PRODUCT_UNIT_TYPE, ViewSearchProductUnit.PRODUCT_UNIT_NAME, ViewSearchProductUnit.PRODUCT_UNIT_PID, 
                         ViewSearchProductUnit.METER_NAME, COUNT(ViewSearchProductUnit.PRODUCT_UNIT_NAME) AS COUNT
FROM            ViewSearchProductUnit INNER JOIN
                         CP_STAGE ON ViewSearchProductUnit.CP_STAGE_ID = CP_STAGE.ID INNER JOIN
                         CALENDAR_PLAN ON CP_STAGE.CALENDAR_PLAN_ID = CALENDAR_PLAN.ID
WHERE        (CALENDAR_PLAN.ID = @ID)
GROUP BY ViewSearchProductUnit.PRODUCT_UNIT_NAME, ViewSearchProductUnit.PRODUCT_UNIT_TYPE, ViewSearchProductUnit.METER_NAME, 
                         ViewSearchProductUnit.PRODUCT_UNIT_PID</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="FSO2.dbo.CALENDAR_PLAN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.ViewSearchProductUnit" DbObjectType="View" FillMethodModifier="Public" FillMethodName="FillByCostProtocolID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByCostProtocolID" GeneratorSourceName="FillByCostProtocolID" GetMethodModifier="Public" GetMethodName="GetDataByCostProtocolID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByCostProtocolID" UserSourceName="FillByCostProtocolID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT     ViewSearchProductUnit.PRODUCT_UNIT_PID, ViewSearchProductUnit.METER_NAME, ViewSearchProductUnit.PRODUCT_UNIT_NAME, 
                      COUNT(ViewSearchProductUnit.PRODUCT_UNIT_NAME) AS COUNT
FROM         PRODUCT_COST INNER JOIN
                      COST_PROTOCOL ON PRODUCT_COST.COST_PROTOCOL_ID = COST_PROTOCOL.ID INNER JOIN
                      ViewSearchProductUnit ON PRODUCT_COST.PRODUCT_UNIT_ID = ViewSearchProductUnit.PRODUCT_UNIT_ID
WHERE     (COST_PROTOCOL.ID = @ID)
GROUP BY ViewSearchProductUnit.PRODUCT_UNIT_PID, ViewSearchProductUnit.METER_NAME, ViewSearchProductUnit.PRODUCT_UNIT_NAME</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="FSO2.dbo.COST_PROTOCOL" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.ViewSearchProductUnit" DbObjectType="View" FillMethodModifier="Public" FillMethodName="FillByPid" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByPid" GeneratorSourceName="FillByPid" GetMethodModifier="Public" GetMethodName="GetDataByPid" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByPid" UserSourceName="FillByPid">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT     PRODUCT_UNIT_NAME, PRODUCT_UNIT_PID, METER_NAME, COUNT(PRODUCT_UNIT_NAME) AS COUNT
FROM         ViewSearchProductUnit
WHERE     (PRODUCT_UNIT_PID = @PID)
GROUP BY PRODUCT_UNIT_NAME, PRODUCT_UNIT_PID, METER_NAME</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="PID" ColumnName="PRODUCT_UNIT_PID" DataSourceName="FSO2.dbo.ViewSearchProductUnit" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="PRODUCT_UNIT_PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.ViewSearchProductUnit" DbObjectType="View" FillMethodModifier="Public" FillMethodName="FillForCostProtocol" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataForCostProtocol" GeneratorSourceName="FillForCostProtocol" GetMethodModifier="Public" GetMethodName="GetDataForCostProtocol" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataForCostProtocol" UserSourceName="FillForCostProtocol">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        PRODUCT_UNIT_TYPE, PRODUCT_UNIT_NAME, PRODUCT_UNIT_PID, METER_NAME, COUNT(PRODUCT_UNIT_NAME) AS COUNT
FROM            ViewSearchProductUnit
WHERE        (PRODUCT_UNIT_PID = @PID) AND (NOT (PRODUCT_UNIT_ID IN
                             (SELECT        PC.PRODUCT_UNIT_ID
                               FROM            PRODUCT_COST AS PC INNER JOIN
                                                         COST_PROTOCOL AS CP ON PC.COST_PROTOCOL_ID = CP.ID
                               WHERE        (CP.PID = @PID) AND (CP.START_DATE &gt; @END_DATE) OR
                                                         (CP.PID = @PID) AND (CP.END_DATE &lt; @START_DATE))))
GROUP BY PRODUCT_UNIT_TYPE, PRODUCT_UNIT_NAME, PRODUCT_UNIT_PID, METER_NAME</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="PID" ColumnName="PRODUCT_UNIT_PID" DataSourceName="FSO2.dbo.ViewSearchProductUnit" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="PRODUCT_UNIT_PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="END_DATE" ColumnName="" DataSourceName="" DataTypeServer="datetime2" DbType="AnsiString" Direction="Input" ParameterName="@END_DATE" Precision="0" Scale="0" Size="8" SourceColumn="" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="START_DATE" ColumnName="" DataSourceName="" DataTypeServer="datetime2" DbType="AnsiString" Direction="Input" ParameterName="@START_DATE" Precision="0" Scale="0" Size="8" SourceColumn="" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="AGGR_PRODUCT_COSTTableAdapter" GeneratorDataComponentClassName="AGGR_PRODUCT_COSTTableAdapter" Name="AGGR_PRODUCT_COST" UserDataComponentName="AGGR_PRODUCT_COSTTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="FillByCostPrID" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetDataCostPrID" GeneratorSourceName="FillByCostPrID" GetMethodModifier="Public" GetMethodName="GetDataCostPrID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetDataCostPrID" UserSourceName="FillByCostPrID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        PRODUCT_UNIT.NAME, COUNT(PRODUCT_UNIT.NAME) AS COUNT, NSI_METER.SHORT_NAME AS NSI_METER_NAME, PRODUCT_COST.COST, 
                         CALENDAR_PLAN.NUMBER + N' \ №' + SPACE(1) + CP_STAGE.NUMBER + SPACE(1) + CP_STAGE.NAME AS CP_STAGE_NUM, CP_STAGE.NAME AS CP_STAGE_NAME,
                          CP_STAGE.START_DATE AS CP_STAGE_SDATE, CP_STAGE.END_DATE AS CP_STAGE_EDATE, PRODUCT_UNIT.CP_STAGE_ID
FROM            PRODUCT_COST INNER JOIN
                         PRODUCT_UNIT ON PRODUCT_COST.PRODUCT_UNIT_ID = PRODUCT_UNIT.ID INNER JOIN
                         CP_STAGE ON PRODUCT_UNIT.CP_STAGE_ID = CP_STAGE.ID INNER JOIN
                         CALENDAR_PLAN ON CP_STAGE.CALENDAR_PLAN_ID = CALENDAR_PLAN.ID LEFT OUTER JOIN
                         NSI_METER RIGHT OUTER JOIN
                         NSI_PRODUCT ON NSI_METER.ID = NSI_PRODUCT.NSI_METER_ID ON PRODUCT_UNIT.NSI_PRODUCT_ID = NSI_PRODUCT.ID
WHERE        (PRODUCT_COST.COST_PROTOCOL_ID = @ID)
GROUP BY PRODUCT_UNIT.NAME, NSI_METER.SHORT_NAME, PRODUCT_COST.COST, CALENDAR_PLAN.NUMBER + N' \ №' + SPACE(1) + CP_STAGE.NUMBER + SPACE(1) 
                         + CP_STAGE.NAME, CP_STAGE.NAME, CP_STAGE.START_DATE, CP_STAGE.END_DATE, PRODUCT_UNIT.CP_STAGE_ID</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="COST_PROTOCOL_ID" DataSourceName="FSO2.dbo.PRODUCT_COST" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="COST_PROTOCOL_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="NAME" DataSetColumn="NAME" />
              <Mapping SourceColumn="COUNT" DataSetColumn="COUNT" />
              <Mapping SourceColumn="NSI_METER_NAME" DataSetColumn="NSI_METER_NAME" />
              <Mapping SourceColumn="COST" DataSetColumn="COST" />
              <Mapping SourceColumn="CP_STAGE_NUM" DataSetColumn="CP_STAGE_NUM" />
              <Mapping SourceColumn="CP_STAGE_NAME" DataSetColumn="CP_STAGE_NAME" />
              <Mapping SourceColumn="CP_STAGE_SDATE" DataSetColumn="CP_STAGE_SDATE" />
              <Mapping SourceColumn="CP_STAGE_EDATE" DataSetColumn="CP_STAGE_EDATE" />
              <Mapping SourceColumn="CP_STAGE_ID" DataSetColumn="CP_STAGE_ID" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="VIEW_SEARCH_COST_PROTOCOLTableAdapter" GeneratorDataComponentClassName="VIEW_SEARCH_COST_PROTOCOLTableAdapter" Name="VIEW_SEARCH_COST_PROTOCOL" UserDataComponentName="VIEW_SEARCH_COST_PROTOCOLTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_SEARCH_COST_PROTOCOL" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        ID, NUMBER, CONTRACT_NUMBER, ORG_NAME, IS_AGREED, PID, START_DATE, END_DATE,PROD_GROUPS
FROM            VIEW_SEARCH_COST_PROTOCOL</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="NUMBER" DataSetColumn="NUMBER" />
              <Mapping SourceColumn="CONTRACT_NUMBER" DataSetColumn="CONTRACT_NUMBER" />
              <Mapping SourceColumn="ORG_NAME" DataSetColumn="ORG_NAME" />
              <Mapping SourceColumn="IS_AGREED" DataSetColumn="IS_AGREED" />
              <Mapping SourceColumn="PID" DataSetColumn="PID" />
              <Mapping SourceColumn="START_DATE" DataSetColumn="START_DATE" />
              <Mapping SourceColumn="END_DATE" DataSetColumn="END_DATE" />
              <Mapping SourceColumn="PROD_GROUPS" DataSetColumn="PROD_GROUPS" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_SEARCH_COST_PROTOCOL" DbObjectType="View" FillMethodModifier="Public" FillMethodName="FillByPid" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByPid" GeneratorSourceName="FillByPid" GetMethodModifier="Public" GetMethodName="GetDataByPid" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByPid" UserSourceName="FillByPid">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT CONTRACT_NUMBER, END_DATE, ID, IS_AGREED, NUMBER, ORG_NAME, PID, PROD_GROUPS, START_DATE FROM VIEW_SEARCH_COST_PROTOCOL WHERE (PID = @PID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="PID" ColumnName="PID" DataSourceName="FSO2.dbo.VIEW_SEARCH_COST_PROTOCOL" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="VIEW_SEARCH_PU_FOR_COST_PROTOCOLTableAdapter" GeneratorDataComponentClassName="VIEW_SEARCH_PU_FOR_COST_PROTOCOLTableAdapter" Name="VIEW_SEARCH_PU_FOR_COST_PROTOCOL" UserDataComponentName="VIEW_SEARCH_PU_FOR_COST_PROTOCOLTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_SEARCH_PU_FOR_COST_PROTOCOL" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        NAME, TYPE, COUNT, METER, CAL_P_NAME, CAL_P_NUMBER, CAL_P_START_DATE, CAL_P_END_DATE, PID, COUNT_TMP, CP_STAGE_ID
FROM            VIEW_SEARCH_PU_FOR_COST_PROTOCOL</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="NAME" DataSetColumn="NAME" />
              <Mapping SourceColumn="TYPE" DataSetColumn="TYPE" />
              <Mapping SourceColumn="COUNT" DataSetColumn="COUNT" />
              <Mapping SourceColumn="METER" DataSetColumn="METER" />
              <Mapping SourceColumn="CAL_P_NAME" DataSetColumn="CAL_P_NAME" />
              <Mapping SourceColumn="CAL_P_NUMBER" DataSetColumn="CAL_P_NUMBER" />
              <Mapping SourceColumn="CAL_P_START_DATE" DataSetColumn="CAL_P_START_DATE" />
              <Mapping SourceColumn="CAL_P_END_DATE" DataSetColumn="CAL_P_END_DATE" />
              <Mapping SourceColumn="PID" DataSetColumn="PID" />
              <Mapping SourceColumn="COUNT_TMP" DataSetColumn="COUNT_TMP" />
              <Mapping SourceColumn="CP_STAGE_ID" DataSetColumn="CP_STAGE_ID" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_SEARCH_PU_FOR_COST_PROTOCOL" DbObjectType="View" FillMethodModifier="Public" FillMethodName="FillByPid" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByPid" GeneratorSourceName="FillByPid" GetMethodModifier="Public" GetMethodName="GetDataByPid" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByPid" UserSourceName="FillByPid">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        CAL_P_END_DATE, CAL_P_NAME, CAL_P_NUMBER, CAL_P_START_DATE, COUNT, COUNT_TMP, CP_STAGE_ID, METER, NAME, PID, TYPE
FROM            VIEW_SEARCH_PU_FOR_COST_PROTOCOL
WHERE        (PID = @PID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="PID" ColumnName="PID" DataSourceName="FSO2.dbo.VIEW_SEARCH_PU_FOR_COST_PROTOCOL" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="VIEW_SEARCH_INVOICE_OUTTableAdapter" GeneratorDataComponentClassName="VIEW_SEARCH_INVOICE_OUTTableAdapter" Name="VIEW_SEARCH_INVOICE_OUT" UserDataComponentName="VIEW_SEARCH_INVOICE_OUTTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_SEARCH_INVOICE_OUT" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        ID, NUMBER, DATE, SUM, CONTRACT_NUM, NSI_CURRENCY_SHORT_NAME, NSI_ORGANIZATION_SHORT_NAME, NSI_TYPE_OF_ACTIVITY_NAME, PID, STATE, 
                         NSI_ORGANIZATION_ID,PROD_GROUPS
FROM            VIEW_SEARCH_INVOICE_OUT</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="NUMBER" DataSetColumn="NUMBER" />
              <Mapping SourceColumn="DATE" DataSetColumn="DATE" />
              <Mapping SourceColumn="SUM" DataSetColumn="SUM" />
              <Mapping SourceColumn="CONTRACT_NUM" DataSetColumn="CONTRACT_NUM" />
              <Mapping SourceColumn="NSI_CURRENCY_SHORT_NAME" DataSetColumn="NSI_CURRENCY_SHORT_NAME" />
              <Mapping SourceColumn="NSI_ORGANIZATION_SHORT_NAME" DataSetColumn="NSI_ORGANIZATION_SHORT_NAME" />
              <Mapping SourceColumn="NSI_TYPE_OF_ACTIVITY_NAME" DataSetColumn="NSI_TYPE_OF_ACTIVITY_NAME" />
              <Mapping SourceColumn="PID" DataSetColumn="PID" />
              <Mapping SourceColumn="STATE" DataSetColumn="STATE" />
              <Mapping SourceColumn="NSI_ORGANIZATION_ID" DataSetColumn="NSI_ORGANIZATION_ID" />
              <Mapping SourceColumn="PROD_GROUPS" DataSetColumn="PROD_GROUPS" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_SEARCH_INVOICE_OUT" DbObjectType="View" FillMethodModifier="Public" FillMethodName="FillByOrgId" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByOrgId" GeneratorSourceName="FillByOrgId" GetMethodModifier="Public" GetMethodName="GetDataByOrgId" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByOrgId" UserSourceName="FillByOrgId">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT CONTRACT_NUM, DATE, ID, NSI_CURRENCY_SHORT_NAME, NSI_ORGANIZATION_ID, NSI_ORGANIZATION_SHORT_NAME, NSI_TYPE_OF_ACTIVITY_NAME, NUMBER, PID, PROD_GROUPS, STATE, SUM FROM VIEW_SEARCH_INVOICE_OUT WHERE (NSI_ORGANIZATION_ID = @OrgId)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="OrgId" ColumnName="NSI_ORGANIZATION_ID" DataSourceName="FSO2.dbo.VIEW_SEARCH_INVOICE_OUT" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@OrgId" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="NSI_ORGANIZATION_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_SEARCH_INVOICE_OUT" DbObjectType="View" FillMethodModifier="Public" FillMethodName="FillByPID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByPID" GeneratorSourceName="FillByPID" GetMethodModifier="Public" GetMethodName="GetDataByPID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByPID" UserSourceName="FillByPID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT CONTRACT_NUM, DATE, ID, NSI_CURRENCY_SHORT_NAME, NSI_ORGANIZATION_ID, NSI_ORGANIZATION_SHORT_NAME, NSI_TYPE_OF_ACTIVITY_NAME, NUMBER, PID, PROD_GROUPS, STATE, SUM FROM VIEW_SEARCH_INVOICE_OUT WHERE (PID = @PID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="PID" ColumnName="PID" DataSourceName="FSO2.dbo.VIEW_SEARCH_INVOICE_OUT" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_SEARCH_INVOICE_OUT" DbObjectType="View" FillMethodModifier="Public" FillMethodName="FillByPidIsNull" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByPidIsNull" GeneratorSourceName="FillByPidIsNull" GetMethodModifier="Public" GetMethodName="GetDataByPidIsNull" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByPidIsNull" UserSourceName="FillByPidIsNull">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT CONTRACT_NUM, DATE, ID, NSI_CURRENCY_SHORT_NAME, NSI_ORGANIZATION_ID, NSI_ORGANIZATION_SHORT_NAME, NSI_TYPE_OF_ACTIVITY_NAME, NUMBER, PID, PROD_GROUPS, STATE, SUM FROM VIEW_SEARCH_INVOICE_OUT WHERE (PID IS NULL)</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO3.dbo.VIEW_SEARCH_INVOICE_OUT" DbObjectType="View" FillMethodModifier="Public" FillMethodName="FillByVatInvID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByVatInvID" GeneratorSourceName="FillByVatInvID" GetMethodModifier="Public" GetMethodName="GetDataByVatInvID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByVatInvID" UserSourceName="FillByVatInvID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT DISTINCT 
                         VIEW_SEARCH_INVOICE_OUT.ID, VIEW_SEARCH_INVOICE_OUT.NUMBER, VIEW_SEARCH_INVOICE_OUT.DATE, VIEW_SEARCH_INVOICE_OUT.SUM, 
                         VIEW_SEARCH_INVOICE_OUT.CONTRACT_NUM, VIEW_SEARCH_INVOICE_OUT.NSI_CURRENCY_SHORT_NAME, 
                         VIEW_SEARCH_INVOICE_OUT.NSI_ORGANIZATION_SHORT_NAME, VIEW_SEARCH_INVOICE_OUT.NSI_TYPE_OF_ACTIVITY_NAME, 
                         VIEW_SEARCH_INVOICE_OUT.PID, SUM(INVOICE_OUT_ITEM.SUM) AS INVOICE_OUT_ITEM_SUM, VIEW_SEARCH_INVOICE_OUT.STATE, 
                         VIEW_SEARCH_INVOICE_OUT.PROD_GROUPS, COUNT(*) AS Expr1, VIEW_SEARCH_INVOICE_OUT.NSI_ORGANIZATION_ID
FROM            PRODUCT_UNIT INNER JOIN
                         INVOICE_OUT_ITEM ON PRODUCT_UNIT.ID = INVOICE_OUT_ITEM.PRODUCT_UNIT_ID INNER JOIN
                         VAT_INVOICE ON PRODUCT_UNIT.VAT_INVOICE_ID = VAT_INVOICE.ID INNER JOIN
                         VIEW_SEARCH_INVOICE_OUT ON INVOICE_OUT_ITEM.INVOICE_OUT_ID = VIEW_SEARCH_INVOICE_OUT.ID
WHERE        (VAT_INVOICE.ID = @VatInvID)
GROUP BY VIEW_SEARCH_INVOICE_OUT.ID, VIEW_SEARCH_INVOICE_OUT.NUMBER, VIEW_SEARCH_INVOICE_OUT.DATE, VIEW_SEARCH_INVOICE_OUT.SUM, 
                         VIEW_SEARCH_INVOICE_OUT.CONTRACT_NUM, VIEW_SEARCH_INVOICE_OUT.NSI_CURRENCY_SHORT_NAME, 
                         VIEW_SEARCH_INVOICE_OUT.NSI_ORGANIZATION_SHORT_NAME, VIEW_SEARCH_INVOICE_OUT.NSI_TYPE_OF_ACTIVITY_NAME, 
                         VIEW_SEARCH_INVOICE_OUT.PID, VIEW_SEARCH_INVOICE_OUT.STATE, VIEW_SEARCH_INVOICE_OUT.PROD_GROUPS, 
                         VIEW_SEARCH_INVOICE_OUT.NSI_ORGANIZATION_ID</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="VatInvID" ColumnName="ID" DataSourceName="FSO3.dbo.VAT_INVOICE" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@VatInvID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="VIEW_PAY_IN_ON_INV_OUTTableAdapter" GeneratorDataComponentClassName="VIEW_PAY_IN_ON_INV_OUTTableAdapter" Name="VIEW_PAY_IN_ON_INV_OUT" UserDataComponentName="VIEW_PAY_IN_ON_INV_OUTTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_PAY_IN_ON_INV_OUT" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        PAYMENT_IN_NUMBER, ID, PAYMENT_IN_ID, INVOICE_OUT_ID, SUM_CUR, SUM_RUB, PID, PAYMENT_IN_DATE, INVOICE_OUT_NUM, 
                         NSI_CURRENCY_NAME
FROM            VIEW_PAY_IN_ON_INV_OUT</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="PAYMENT_IN_NUMBER" DataSetColumn="PAYMENT_IN_NUMBER" />
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="PAYMENT_IN_ID" DataSetColumn="PAYMENT_IN_ID" />
              <Mapping SourceColumn="INVOICE_OUT_ID" DataSetColumn="INVOICE_OUT_ID" />
              <Mapping SourceColumn="SUM_CUR" DataSetColumn="SUM_CUR" />
              <Mapping SourceColumn="SUM_RUB" DataSetColumn="SUM_RUB" />
              <Mapping SourceColumn="PID" DataSetColumn="PID" />
              <Mapping SourceColumn="PAYMENT_IN_DATE" DataSetColumn="PAYMENT_IN_DATE" />
              <Mapping SourceColumn="INVOICE_OUT_NUM" DataSetColumn="INVOICE_OUT_NUM" />
              <Mapping SourceColumn="NSI_CURRENCY_NAME" DataSetColumn="NSI_CURRENCY_NAME" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_PAY_IN_ON_INV_OUT" DbObjectType="View" FillMethodModifier="Public" FillMethodName="FillByInvOut" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByInvOut" GeneratorSourceName="FillByInvOut" GetMethodModifier="Public" GetMethodName="GetDataByInvOut" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByInvOut" UserSourceName="FillByInvOut">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT ID, INVOICE_OUT_ID, INVOICE_OUT_NUM, NSI_CURRENCY_NAME, PAYMENT_IN_DATE, PAYMENT_IN_ID, PAYMENT_IN_NUMBER, PID, SUM_CUR, SUM_RUB FROM VIEW_PAY_IN_ON_INV_OUT WHERE (INVOICE_OUT_ID = @InvId)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="InvId" ColumnName="INVOICE_OUT_ID" DataSourceName="FSO2.dbo.VIEW_PAY_IN_ON_INV_OUT" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@InvId" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="INVOICE_OUT_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_PAY_IN_ON_INV_OUT" DbObjectType="View" FillMethodModifier="Public" FillMethodName="FillByPayInId" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByPayInId" GeneratorSourceName="FillByPayInId" GetMethodModifier="Public" GetMethodName="GetDataByPayInId" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByPayInId" UserSourceName="FillByPayInId">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT ID, INVOICE_OUT_ID, INVOICE_OUT_NUM, NSI_CURRENCY_NAME, PAYMENT_IN_DATE, PAYMENT_IN_ID, PAYMENT_IN_NUMBER, PID, SUM_CUR, SUM_RUB FROM VIEW_PAY_IN_ON_INV_OUT WHERE (PAYMENT_IN_ID = @PayId)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="PayId" ColumnName="PAYMENT_IN_ID" DataSourceName="FSO2.dbo.VIEW_PAY_IN_ON_INV_OUT" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@PayId" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="PAYMENT_IN_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="GUILD_BILLTableAdapter" GeneratorDataComponentClassName="GUILD_BILLTableAdapter" Name="GUILD_BILL" UserDataComponentName="GUILD_BILLTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.GUILD_BILL" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[GUILD_BILL] WHERE (([ID] = @Original_ID) AND ([NUMBER] = @Original_NUMBER) AND ([DATE] = @Original_DATE) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)) AND ((@IsNull_PID = 1 AND [PID] IS NULL) OR ([PID] = @Original_PID)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_NUMBER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_DATE" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="DATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[GUILD_BILL] ([NUMBER], [DATE], [DESCRIPTION], [LAST_UPDATE], [LAST_UPDATE_USER], [PID]) VALUES (@NUMBER, @DATE, @DESCRIPTION, @LAST_UPDATE, @LAST_UPDATE_USER, @PID);
SELECT ID, NUMBER, DATE, DESCRIPTION, LAST_UPDATE, LAST_UPDATE_USER, PID FROM GUILD_BILL WHERE (ID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@NUMBER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@DATE" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="DATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@DESCRIPTION" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DESCRIPTION" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT ID, NUMBER, DATE, DESCRIPTION, LAST_UPDATE, LAST_UPDATE_USER, PID FROM dbo.GUILD_BILL</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[GUILD_BILL] SET [NUMBER] = @NUMBER, [DATE] = @DATE, [DESCRIPTION] = @DESCRIPTION, [LAST_UPDATE] = @LAST_UPDATE, [LAST_UPDATE_USER] = @LAST_UPDATE_USER, [PID] = @PID WHERE (([ID] = @Original_ID) AND ([NUMBER] = @Original_NUMBER) AND ([DATE] = @Original_DATE) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)) AND ((@IsNull_PID = 1 AND [PID] IS NULL) OR ([PID] = @Original_PID)));
SELECT ID, NUMBER, DATE, DESCRIPTION, LAST_UPDATE, LAST_UPDATE_USER, PID FROM GUILD_BILL WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@NUMBER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@DATE" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="DATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@DESCRIPTION" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DESCRIPTION" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_NUMBER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_DATE" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="DATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="NUMBER" DataSetColumn="NUMBER" />
              <Mapping SourceColumn="DATE" DataSetColumn="DATE" />
              <Mapping SourceColumn="DESCRIPTION" DataSetColumn="DESCRIPTION" />
              <Mapping SourceColumn="LAST_UPDATE" DataSetColumn="LAST_UPDATE" />
              <Mapping SourceColumn="LAST_UPDATE_USER" DataSetColumn="LAST_UPDATE_USER" />
              <Mapping SourceColumn="PID" DataSetColumn="PID" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.GUILD_BILL" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByID" GeneratorSourceName="FillByID" GetMethodModifier="Public" GetMethodName="GetDataByID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByID" UserSourceName="FillByID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT ID, NUMBER, DATE, DESCRIPTION, LAST_UPDATE, LAST_UPDATE_USER, PID FROM dbo.GUILD_BILL
WHERE ID = @ID</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="FSO2.dbo.GUILD_BILL" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="DIRECTTableAdapter" GeneratorDataComponentClassName="DIRECTTableAdapter" Name="DIRECT" UserDataComponentName="DIRECTTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.DIRECT" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[DIRECT] WHERE (([ID] = @Original_ID) AND ([NUMBER] = @Original_NUMBER) AND ([DATE] = @Original_DATE) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)) AND ((@IsNull_PID = 1 AND [PID] IS NULL) OR ([PID] = @Original_PID)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_NUMBER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_DATE" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="DATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[DIRECT] ([NUMBER], [DATE], [DESCRIPTION], [LAST_UPDATE], [LAST_UPDATE_USER], [PID]) VALUES (@NUMBER, @DATE, @DESCRIPTION, @LAST_UPDATE, @LAST_UPDATE_USER, @PID);
SELECT ID, NUMBER, DATE, DESCRIPTION, LAST_UPDATE, LAST_UPDATE_USER, PID FROM DIRECT WHERE (ID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@NUMBER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@DATE" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="DATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@DESCRIPTION" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DESCRIPTION" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT ID, NUMBER, DATE, DESCRIPTION, LAST_UPDATE, LAST_UPDATE_USER, PID FROM dbo.DIRECT</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[DIRECT] SET [NUMBER] = @NUMBER, [DATE] = @DATE, [DESCRIPTION] = @DESCRIPTION, [LAST_UPDATE] = @LAST_UPDATE, [LAST_UPDATE_USER] = @LAST_UPDATE_USER, [PID] = @PID WHERE (([ID] = @Original_ID) AND ([NUMBER] = @Original_NUMBER) AND ([DATE] = @Original_DATE) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)) AND ((@IsNull_PID = 1 AND [PID] IS NULL) OR ([PID] = @Original_PID)));
SELECT ID, NUMBER, DATE, DESCRIPTION, LAST_UPDATE, LAST_UPDATE_USER, PID FROM DIRECT WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@NUMBER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@DATE" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="DATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@DESCRIPTION" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DESCRIPTION" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_NUMBER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NUMBER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_DATE" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="DATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="NUMBER" DataSetColumn="NUMBER" />
              <Mapping SourceColumn="DATE" DataSetColumn="DATE" />
              <Mapping SourceColumn="DESCRIPTION" DataSetColumn="DESCRIPTION" />
              <Mapping SourceColumn="LAST_UPDATE" DataSetColumn="LAST_UPDATE" />
              <Mapping SourceColumn="LAST_UPDATE_USER" DataSetColumn="LAST_UPDATE_USER" />
              <Mapping SourceColumn="PID" DataSetColumn="PID" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.DIRECT" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByID" GeneratorSourceName="FillByID" GetMethodModifier="Public" GetMethodName="GetDataByID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByID" UserSourceName="FillByID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT ID, NUMBER, DATE, DESCRIPTION, LAST_UPDATE, LAST_UPDATE_USER, PID FROM dbo.DIRECT
WHERE ID = @ID</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="FSO2.dbo.DIRECT" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="VIEW_SEARCH_PAYMENT_INTableAdapter" GeneratorDataComponentClassName="VIEW_SEARCH_PAYMENT_INTableAdapter" Name="VIEW_SEARCH_PAYMENT_IN" UserDataComponentName="VIEW_SEARCH_PAYMENT_INTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_SEARCH_PAYMENT_IN" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        ID, NUMBER, DATE, SUM_RUB, NSI_ORGANIZATION_NAME, NSI_TYPE_OF_ACTIVITY_NAME, CONTRACT_NUMBER, PID, NSI_ORGANIZATION_ID,PROD_GROUPS
FROM            VIEW_SEARCH_PAYMENT_IN</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="NUMBER" DataSetColumn="NUMBER" />
              <Mapping SourceColumn="DATE" DataSetColumn="DATE" />
              <Mapping SourceColumn="SUM_RUB" DataSetColumn="SUM_RUB" />
              <Mapping SourceColumn="NSI_ORGANIZATION_NAME" DataSetColumn="NSI_ORGANIZATION_NAME" />
              <Mapping SourceColumn="NSI_TYPE_OF_ACTIVITY_NAME" DataSetColumn="NSI_TYPE_OF_ACTIVITY_NAME" />
              <Mapping SourceColumn="CONTRACT_NUMBER" DataSetColumn="CONTRACT_NUMBER" />
              <Mapping SourceColumn="PID" DataSetColumn="PID" />
              <Mapping SourceColumn="NSI_ORGANIZATION_ID" DataSetColumn="NSI_ORGANIZATION_ID" />
              <Mapping SourceColumn="PROD_GROUPS" DataSetColumn="PROD_GROUPS" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_SEARCH_PAYMENT_IN" DbObjectType="View" FillMethodModifier="Public" FillMethodName="FillByOrgId" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByOrgId" GeneratorSourceName="FillByOrgId" GetMethodModifier="Public" GetMethodName="GetDataByOrgId" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByOrgId" UserSourceName="FillByOrgId">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT CONTRACT_NUMBER, DATE, ID, NSI_ORGANIZATION_ID, NSI_ORGANIZATION_NAME, NSI_TYPE_OF_ACTIVITY_NAME, NUMBER, PID, PROD_GROUPS, SUM_RUB FROM VIEW_SEARCH_PAYMENT_IN WHERE (NSI_ORGANIZATION_ID = @OrgId)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="OrgId" ColumnName="NSI_ORGANIZATION_ID" DataSourceName="FSO2.dbo.VIEW_SEARCH_PAYMENT_IN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@OrgId" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="NSI_ORGANIZATION_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_SEARCH_PAYMENT_IN" DbObjectType="View" FillMethodModifier="Public" FillMethodName="FillByPID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByPID" GeneratorSourceName="FillByPID" GetMethodModifier="Public" GetMethodName="GetDataByPID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByPID" UserSourceName="FillByPID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT CONTRACT_NUMBER, DATE, ID, NSI_ORGANIZATION_ID, NSI_ORGANIZATION_NAME, NSI_TYPE_OF_ACTIVITY_NAME, NUMBER, PID, PROD_GROUPS, SUM_RUB FROM VIEW_SEARCH_PAYMENT_IN WHERE (PID = @PID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="PID" ColumnName="PID" DataSourceName="FSO2.dbo.VIEW_SEARCH_PAYMENT_IN" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_SEARCH_PAYMENT_IN" DbObjectType="View" FillMethodModifier="Public" FillMethodName="FillByPidIsNull" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByPidIsNull" GeneratorSourceName="FillByPidIsNull" GetMethodModifier="Public" GetMethodName="GetDataByPidIsNull" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByPidIsNull" UserSourceName="FillByPidIsNull">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT CONTRACT_NUMBER, DATE, ID, NSI_ORGANIZATION_ID, NSI_ORGANIZATION_NAME, NSI_TYPE_OF_ACTIVITY_NAME, NUMBER, PID, PROD_GROUPS, SUM_RUB FROM VIEW_SEARCH_PAYMENT_IN WHERE (PID IS NULL)</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_SEARCH_PAYMENT_IN" DbObjectType="View" FillMethodModifier="Public" FillMethodName="FillByVatInvID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByVatInvID" GeneratorSourceName="FillByVatInvID" GetMethodModifier="Public" GetMethodName="GetDataByVatInvID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByVatInvID" UserSourceName="FillByVatInvID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT DISTINCT 
                         VIEW_SEARCH_PAYMENT_IN.ID, VIEW_SEARCH_PAYMENT_IN.NUMBER, VIEW_SEARCH_PAYMENT_IN.DATE, VIEW_SEARCH_PAYMENT_IN.SUM_RUB, 
                         VIEW_SEARCH_PAYMENT_IN.NSI_ORGANIZATION_NAME, VIEW_SEARCH_PAYMENT_IN.NSI_TYPE_OF_ACTIVITY_NAME, 
                         VIEW_SEARCH_PAYMENT_IN.CONTRACT_NUMBER, VIEW_SEARCH_PAYMENT_IN.PID, SUM(PAYMENT_IN_ITEM.SUM_RUB) AS PAYMENT_IN_ITEM_SUM
FROM            PRODUCT_UNIT INNER JOIN
                         PAYMENT_IN_ITEM ON PRODUCT_UNIT.ID = PAYMENT_IN_ITEM.PRODUCT_UNIT_ID INNER JOIN
                         VAT_INVOICE ON PRODUCT_UNIT.VAT_INVOICE_ID = VAT_INVOICE.ID INNER JOIN
                         VIEW_SEARCH_PAYMENT_IN ON PAYMENT_IN_ITEM.PAYMENT_IN_ID = VIEW_SEARCH_PAYMENT_IN.ID
WHERE        (VAT_INVOICE.ID = @VatInvID)
GROUP BY VIEW_SEARCH_PAYMENT_IN.ID, VIEW_SEARCH_PAYMENT_IN.NUMBER, VIEW_SEARCH_PAYMENT_IN.DATE, VIEW_SEARCH_PAYMENT_IN.SUM_RUB, 
                         VIEW_SEARCH_PAYMENT_IN.NSI_ORGANIZATION_NAME, VIEW_SEARCH_PAYMENT_IN.NSI_TYPE_OF_ACTIVITY_NAME, 
                         VIEW_SEARCH_PAYMENT_IN.CONTRACT_NUMBER, VIEW_SEARCH_PAYMENT_IN.PID</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="VatInvID" ColumnName="ID" DataSourceName="FSO2.dbo.VAT_INVOICE" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@VatInvID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="VIEW_SEARCH_P_U_FOR_FORMSTableAdapter" GeneratorDataComponentClassName="VIEW_SEARCH_P_U_FOR_FORMSTableAdapter" Name="VIEW_SEARCH_P_U_FOR_FORMS" UserDataComponentName="VIEW_SEARCH_P_U_FOR_FORMSTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_SEARCH_P_U_FOR_FORMS" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        ID, NAME, NSI_PRODUCT_STATE_NAME, TYPE, COST, INVOICE_IN_SUM, PAYMENT_IN_SUM_CUR, PAYMENT_IN_SUM_RUB, NSI_CURRENCY_NAME, 
                         COST_PROTOCOL_NUMBER, CP_STAGE_ID, CP_STAGE_NUMBER, CP_STAGE_START_DATE, CP_STAGE_END_DATE, PID, NSI_PRODUCT_STATE_ID, 
                         NSI_PRODUCT_ID, GUILD_BILL_NUMBER, DIRECT_NUMBER, DIRECT_NUMBER_ID, GUILD_BILL_NUMBER_ID, VAT_INVOICE_ID, PAY_PER, 
                         VAT_INVOICE_NUMBER, NSI_METER_NAME, VAT_INVOICE_DATE, PROD_GROUP, NSI_PROD_GROUP_NAME, N_DRAWING, INVOICE_OUT_NUMBER, 
                         CALENDAR_PLAN_NUMBER
FROM            VIEW_SEARCH_P_U_FOR_FORMS</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="NAME" DataSetColumn="NAME" />
              <Mapping SourceColumn="NSI_PRODUCT_STATE_NAME" DataSetColumn="NSI_PRODUCT_STATE_NAME" />
              <Mapping SourceColumn="TYPE" DataSetColumn="TYPE" />
              <Mapping SourceColumn="COST" DataSetColumn="COST" />
              <Mapping SourceColumn="INVOICE_IN_SUM" DataSetColumn="INVOICE_IN_SUM" />
              <Mapping SourceColumn="PAYMENT_IN_SUM_CUR" DataSetColumn="PAYMENT_IN_SUM_CUR" />
              <Mapping SourceColumn="PAYMENT_IN_SUM_RUB" DataSetColumn="PAYMENT_IN_SUM_RUB" />
              <Mapping SourceColumn="NSI_CURRENCY_NAME" DataSetColumn="NSI_CURRENCY_NAME" />
              <Mapping SourceColumn="COST_PROTOCOL_NUMBER" DataSetColumn="COST_PROTOCOL_NUMBER" />
              <Mapping SourceColumn="CP_STAGE_ID" DataSetColumn="CP_STAGE_ID" />
              <Mapping SourceColumn="CP_STAGE_NUMBER" DataSetColumn="CP_STAGE_NUMBER" />
              <Mapping SourceColumn="CP_STAGE_START_DATE" DataSetColumn="CP_STAGE_START_DATE" />
              <Mapping SourceColumn="CP_STAGE_END_DATE" DataSetColumn="CP_STAGE_END_DATE" />
              <Mapping SourceColumn="PID" DataSetColumn="PID" />
              <Mapping SourceColumn="NSI_PRODUCT_STATE_ID" DataSetColumn="NSI_PRODUCT_STATE_ID" />
              <Mapping SourceColumn="NSI_PRODUCT_ID" DataSetColumn="NSI_PRODUCT_ID" />
              <Mapping SourceColumn="GUILD_BILL_NUMBER" DataSetColumn="GUILD_BILL_NUMBER" />
              <Mapping SourceColumn="DIRECT_NUMBER" DataSetColumn="DIRECT_NUMBER" />
              <Mapping SourceColumn="DIRECT_NUMBER_ID" DataSetColumn="DIRECT_NUMBER_ID" />
              <Mapping SourceColumn="GUILD_BILL_NUMBER_ID" DataSetColumn="GUILD_BILL_NUMBER_ID" />
              <Mapping SourceColumn="VAT_INVOICE_ID" DataSetColumn="VAT_INVOICE_ID" />
              <Mapping SourceColumn="PAY_PER" DataSetColumn="PAY_PER" />
              <Mapping SourceColumn="VAT_INVOICE_NUMBER" DataSetColumn="VAT_INVOICE_NUMBER" />
              <Mapping SourceColumn="NSI_METER_NAME" DataSetColumn="NSI_METER_NAME" />
              <Mapping SourceColumn="PROD_GROUP" DataSetColumn="PROD_GROUP" />
              <Mapping SourceColumn="VAT_INVOICE_DATE" DataSetColumn="VAT_INVOICE_DATE1" />
              <Mapping SourceColumn="NSI_PROD_GROUP_NAME" DataSetColumn="NSI_PROD_GROUP_NAME" />
              <Mapping SourceColumn="N_DRAWING" DataSetColumn="N_DRAWING" />
              <Mapping SourceColumn="INVOICE_OUT_NUMBER" DataSetColumn="INVOICE_OUT_NUMBER" />
              <Mapping SourceColumn="CALENDAR_PLAN_NUMBER" DataSetColumn="CALENDAR_PLAN_NUMBER" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.f_Is_PU_Has_Inv_Pay" DbObjectType="Function" GenerateShortCommands="true" GeneratorSourceName="f_Is_PU_Has_Inv_Pay" Modifier="Public" Name="f_Is_PU_Has_Inv_Pay" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="f_Is_PU_Has_Inv_Pay">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.f_Is_PU_Has_Inv_Pay</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="bit" DbType="Boolean" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="1" ProviderType="Bit" Scale="0" Size="1" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_SEARCH_P_U_FOR_FORMS" DbObjectType="View" FillMethodModifier="Public" FillMethodName="FillByInvOutID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByInvOutID" GeneratorSourceName="FillByInvOutID" GetMethodModifier="Public" GetMethodName="GetDataByInvOutID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByInvOutID" UserSourceName="FillByInvOutID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT VIEW_SEARCH_P_U_FOR_FORMS.CALENDAR_PLAN_NUMBER, VIEW_SEARCH_P_U_FOR_FORMS.COST, VIEW_SEARCH_P_U_FOR_FORMS.COST_PROTOCOL_NUMBER, VIEW_SEARCH_P_U_FOR_FORMS.CP_STAGE_END_DATE, VIEW_SEARCH_P_U_FOR_FORMS.CP_STAGE_ID, VIEW_SEARCH_P_U_FOR_FORMS.CP_STAGE_NUMBER, VIEW_SEARCH_P_U_FOR_FORMS.CP_STAGE_START_DATE, VIEW_SEARCH_P_U_FOR_FORMS.DIRECT_NUMBER, VIEW_SEARCH_P_U_FOR_FORMS.DIRECT_NUMBER_ID, VIEW_SEARCH_P_U_FOR_FORMS.GUILD_BILL_NUMBER, VIEW_SEARCH_P_U_FOR_FORMS.GUILD_BILL_NUMBER_ID, VIEW_SEARCH_P_U_FOR_FORMS.ID, VIEW_SEARCH_P_U_FOR_FORMS.INVOICE_IN_SUM, VIEW_SEARCH_P_U_FOR_FORMS.INVOICE_OUT_NUMBER, VIEW_SEARCH_P_U_FOR_FORMS.NAME, VIEW_SEARCH_P_U_FOR_FORMS.NSI_CURRENCY_NAME, VIEW_SEARCH_P_U_FOR_FORMS.NSI_METER_NAME, VIEW_SEARCH_P_U_FOR_FORMS.NSI_PRODUCT_ID, VIEW_SEARCH_P_U_FOR_FORMS.NSI_PRODUCT_STATE_ID, VIEW_SEARCH_P_U_FOR_FORMS.NSI_PRODUCT_STATE_NAME, VIEW_SEARCH_P_U_FOR_FORMS.NSI_PROD_GROUP_NAME, VIEW_SEARCH_P_U_FOR_FORMS.N_DRAWING, VIEW_SEARCH_P_U_FOR_FORMS.PAYMENT_IN_SUM_CUR, VIEW_SEARCH_P_U_FOR_FORMS.PAYMENT_IN_SUM_RUB, VIEW_SEARCH_P_U_FOR_FORMS.PAY_PER, VIEW_SEARCH_P_U_FOR_FORMS.PID, VIEW_SEARCH_P_U_FOR_FORMS.PROD_GROUP, VIEW_SEARCH_P_U_FOR_FORMS.TYPE, VIEW_SEARCH_P_U_FOR_FORMS.VAT_INVOICE_DATE, VIEW_SEARCH_P_U_FOR_FORMS.VAT_INVOICE_ID, VIEW_SEARCH_P_U_FOR_FORMS.VAT_INVOICE_NUMBER FROM VIEW_SEARCH_P_U_FOR_FORMS INNER JOIN INVOICE_OUT_ITEM ON VIEW_SEARCH_P_U_FOR_FORMS.ID = INVOICE_OUT_ITEM.PRODUCT_UNIT_ID WHERE (INVOICE_OUT_ITEM.INVOICE_OUT_ID = @InvOutId)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="InvOutId" ColumnName="INVOICE_OUT_ID" DataSourceName="FSO2.dbo.INVOICE_OUT_ITEM" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@InvOutId" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="INVOICE_OUT_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_SEARCH_P_U_FOR_FORMS" DbObjectType="View" FillMethodModifier="Public" FillMethodName="FillByInvOutIdForVatInv" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByInvOutIdForVatInv" GeneratorSourceName="FillByInvOutIdForVatInv" GetMethodModifier="Public" GetMethodName="GetDataByInvOutIdForVatInv" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByInvOutIdForVatInv" UserSourceName="FillByInvOutIdForVatInv">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT VIEW_SEARCH_P_U_FOR_FORMS.CALENDAR_PLAN_NUMBER, VIEW_SEARCH_P_U_FOR_FORMS.COST, VIEW_SEARCH_P_U_FOR_FORMS.COST_PROTOCOL_NUMBER, VIEW_SEARCH_P_U_FOR_FORMS.CP_STAGE_END_DATE, VIEW_SEARCH_P_U_FOR_FORMS.CP_STAGE_ID, VIEW_SEARCH_P_U_FOR_FORMS.CP_STAGE_NUMBER, VIEW_SEARCH_P_U_FOR_FORMS.CP_STAGE_START_DATE, VIEW_SEARCH_P_U_FOR_FORMS.DIRECT_NUMBER, VIEW_SEARCH_P_U_FOR_FORMS.DIRECT_NUMBER_ID, VIEW_SEARCH_P_U_FOR_FORMS.GUILD_BILL_NUMBER, VIEW_SEARCH_P_U_FOR_FORMS.GUILD_BILL_NUMBER_ID, VIEW_SEARCH_P_U_FOR_FORMS.ID, VIEW_SEARCH_P_U_FOR_FORMS.INVOICE_IN_SUM, VIEW_SEARCH_P_U_FOR_FORMS.INVOICE_OUT_NUMBER, VIEW_SEARCH_P_U_FOR_FORMS.NAME, VIEW_SEARCH_P_U_FOR_FORMS.NSI_CURRENCY_NAME, VIEW_SEARCH_P_U_FOR_FORMS.NSI_METER_NAME, VIEW_SEARCH_P_U_FOR_FORMS.NSI_PRODUCT_ID, VIEW_SEARCH_P_U_FOR_FORMS.NSI_PRODUCT_STATE_ID, VIEW_SEARCH_P_U_FOR_FORMS.NSI_PRODUCT_STATE_NAME, VIEW_SEARCH_P_U_FOR_FORMS.NSI_PROD_GROUP_NAME, VIEW_SEARCH_P_U_FOR_FORMS.N_DRAWING, VIEW_SEARCH_P_U_FOR_FORMS.PAYMENT_IN_SUM_CUR, VIEW_SEARCH_P_U_FOR_FORMS.PAYMENT_IN_SUM_RUB, VIEW_SEARCH_P_U_FOR_FORMS.PAY_PER, VIEW_SEARCH_P_U_FOR_FORMS.PID, VIEW_SEARCH_P_U_FOR_FORMS.PROD_GROUP, VIEW_SEARCH_P_U_FOR_FORMS.TYPE, VIEW_SEARCH_P_U_FOR_FORMS.VAT_INVOICE_DATE, VIEW_SEARCH_P_U_FOR_FORMS.VAT_INVOICE_ID, VIEW_SEARCH_P_U_FOR_FORMS.VAT_INVOICE_NUMBER FROM VIEW_SEARCH_P_U_FOR_FORMS INNER JOIN INVOICE_OUT_ITEM ON VIEW_SEARCH_P_U_FOR_FORMS.ID = INVOICE_OUT_ITEM.PRODUCT_UNIT_ID WHERE (INVOICE_OUT_ITEM.INVOICE_OUT_ID = @InvOutId) AND (VIEW_SEARCH_P_U_FOR_FORMS.TYPE = 0) AND (VIEW_SEARCH_P_U_FOR_FORMS.PAY_PER &gt;= @PayPer) OR (INVOICE_OUT_ITEM.INVOICE_OUT_ID = @InvOutId) AND (VIEW_SEARCH_P_U_FOR_FORMS.TYPE = 1) AND (VIEW_SEARCH_P_U_FOR_FORMS.PAY_PER &gt;= @PayPer) AND (VIEW_SEARCH_P_U_FOR_FORMS.NSI_PRODUCT_STATE_ID = 3)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="InvOutId" ColumnName="INVOICE_OUT_ID" DataSourceName="FSO2.dbo.INVOICE_OUT_ITEM" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@InvOutId" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="INVOICE_OUT_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="PayPer" ColumnName="PAY_PER" DataSourceName="FSO2.dbo.VIEW_SEARCH_P_U_FOR_FORMS" DataTypeServer="money" DbType="Currency" Direction="Input" ParameterName="@PayPer" Precision="0" ProviderType="Money" Scale="0" Size="8" SourceColumn="PAY_PER" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_SEARCH_P_U_FOR_FORMS" DbObjectType="View" FillMethodModifier="Public" FillMethodName="FillByPayInID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByPayInID" GeneratorSourceName="FillByPayInID" GetMethodModifier="Public" GetMethodName="GetDataByPayInID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByPayInID" UserSourceName="FillByPayInID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT VIEW_SEARCH_P_U_FOR_FORMS.CALENDAR_PLAN_NUMBER, VIEW_SEARCH_P_U_FOR_FORMS.COST, VIEW_SEARCH_P_U_FOR_FORMS.COST_PROTOCOL_NUMBER, VIEW_SEARCH_P_U_FOR_FORMS.CP_STAGE_END_DATE, VIEW_SEARCH_P_U_FOR_FORMS.CP_STAGE_ID, VIEW_SEARCH_P_U_FOR_FORMS.CP_STAGE_NUMBER, VIEW_SEARCH_P_U_FOR_FORMS.CP_STAGE_START_DATE, VIEW_SEARCH_P_U_FOR_FORMS.DIRECT_NUMBER, VIEW_SEARCH_P_U_FOR_FORMS.DIRECT_NUMBER_ID, VIEW_SEARCH_P_U_FOR_FORMS.GUILD_BILL_NUMBER, VIEW_SEARCH_P_U_FOR_FORMS.GUILD_BILL_NUMBER_ID, VIEW_SEARCH_P_U_FOR_FORMS.ID, VIEW_SEARCH_P_U_FOR_FORMS.INVOICE_IN_SUM, VIEW_SEARCH_P_U_FOR_FORMS.INVOICE_OUT_NUMBER, VIEW_SEARCH_P_U_FOR_FORMS.NAME, VIEW_SEARCH_P_U_FOR_FORMS.NSI_CURRENCY_NAME, VIEW_SEARCH_P_U_FOR_FORMS.NSI_METER_NAME, VIEW_SEARCH_P_U_FOR_FORMS.NSI_PRODUCT_ID, VIEW_SEARCH_P_U_FOR_FORMS.NSI_PRODUCT_STATE_ID, VIEW_SEARCH_P_U_FOR_FORMS.NSI_PRODUCT_STATE_NAME, VIEW_SEARCH_P_U_FOR_FORMS.NSI_PROD_GROUP_NAME, VIEW_SEARCH_P_U_FOR_FORMS.N_DRAWING, VIEW_SEARCH_P_U_FOR_FORMS.PAYMENT_IN_SUM_CUR, VIEW_SEARCH_P_U_FOR_FORMS.PAYMENT_IN_SUM_RUB, VIEW_SEARCH_P_U_FOR_FORMS.PAY_PER, VIEW_SEARCH_P_U_FOR_FORMS.PID, VIEW_SEARCH_P_U_FOR_FORMS.PROD_GROUP, VIEW_SEARCH_P_U_FOR_FORMS.TYPE, VIEW_SEARCH_P_U_FOR_FORMS.VAT_INVOICE_DATE, VIEW_SEARCH_P_U_FOR_FORMS.VAT_INVOICE_ID, VIEW_SEARCH_P_U_FOR_FORMS.VAT_INVOICE_NUMBER FROM VIEW_SEARCH_P_U_FOR_FORMS INNER JOIN PAYMENT_IN_ITEM ON VIEW_SEARCH_P_U_FOR_FORMS.ID = PAYMENT_IN_ITEM.PRODUCT_UNIT_ID WHERE (PAYMENT_IN_ITEM.PAYMENT_IN_ID = @PayInID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="PayInID" ColumnName="PAYMENT_IN_ID" DataSourceName="FSO2.dbo.PAYMENT_IN_ITEM" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@PayInID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="PAYMENT_IN_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_SEARCH_P_U_FOR_FORMS" DbObjectType="View" FillMethodModifier="Public" FillMethodName="FillByPayInIdCurName" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByPayInIdCurName" GeneratorSourceName="FillByPayInIdCurName" GetMethodModifier="Public" GetMethodName="GetDataByPayInIdCurName" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByPayInIdCurName" UserSourceName="FillByPayInIdCurName">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT VIEW_SEARCH_P_U_FOR_FORMS.CALENDAR_PLAN_NUMBER, VIEW_SEARCH_P_U_FOR_FORMS.COST, VIEW_SEARCH_P_U_FOR_FORMS.COST_PROTOCOL_NUMBER, VIEW_SEARCH_P_U_FOR_FORMS.CP_STAGE_END_DATE, VIEW_SEARCH_P_U_FOR_FORMS.CP_STAGE_ID, VIEW_SEARCH_P_U_FOR_FORMS.CP_STAGE_NUMBER, VIEW_SEARCH_P_U_FOR_FORMS.CP_STAGE_START_DATE, VIEW_SEARCH_P_U_FOR_FORMS.DIRECT_NUMBER, VIEW_SEARCH_P_U_FOR_FORMS.DIRECT_NUMBER_ID, VIEW_SEARCH_P_U_FOR_FORMS.GUILD_BILL_NUMBER, VIEW_SEARCH_P_U_FOR_FORMS.GUILD_BILL_NUMBER_ID, VIEW_SEARCH_P_U_FOR_FORMS.ID, VIEW_SEARCH_P_U_FOR_FORMS.INVOICE_IN_SUM, VIEW_SEARCH_P_U_FOR_FORMS.INVOICE_OUT_NUMBER, VIEW_SEARCH_P_U_FOR_FORMS.NAME, VIEW_SEARCH_P_U_FOR_FORMS.NSI_CURRENCY_NAME, VIEW_SEARCH_P_U_FOR_FORMS.NSI_METER_NAME, VIEW_SEARCH_P_U_FOR_FORMS.NSI_PRODUCT_ID, VIEW_SEARCH_P_U_FOR_FORMS.NSI_PRODUCT_STATE_ID, VIEW_SEARCH_P_U_FOR_FORMS.NSI_PRODUCT_STATE_NAME, VIEW_SEARCH_P_U_FOR_FORMS.NSI_PROD_GROUP_NAME, VIEW_SEARCH_P_U_FOR_FORMS.N_DRAWING, VIEW_SEARCH_P_U_FOR_FORMS.PAYMENT_IN_SUM_CUR, VIEW_SEARCH_P_U_FOR_FORMS.PAYMENT_IN_SUM_RUB, VIEW_SEARCH_P_U_FOR_FORMS.PAY_PER, VIEW_SEARCH_P_U_FOR_FORMS.PID, VIEW_SEARCH_P_U_FOR_FORMS.PROD_GROUP, VIEW_SEARCH_P_U_FOR_FORMS.TYPE, VIEW_SEARCH_P_U_FOR_FORMS.VAT_INVOICE_DATE, VIEW_SEARCH_P_U_FOR_FORMS.VAT_INVOICE_ID, VIEW_SEARCH_P_U_FOR_FORMS.VAT_INVOICE_NUMBER FROM VIEW_SEARCH_P_U_FOR_FORMS INNER JOIN PAYMENT_IN_ITEM ON VIEW_SEARCH_P_U_FOR_FORMS.ID = PAYMENT_IN_ITEM.PRODUCT_UNIT_ID WHERE (PAYMENT_IN_ITEM.PAYMENT_IN_ID = @PayInID) AND (VIEW_SEARCH_P_U_FOR_FORMS.NSI_CURRENCY_NAME = @CurName)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="PayInID" ColumnName="PAYMENT_IN_ID" DataSourceName="FSO2.dbo.PAYMENT_IN_ITEM" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@PayInID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="PAYMENT_IN_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="CurName" ColumnName="NSI_CURRENCY_NAME" DataSourceName="FSO2.dbo.VIEW_SEARCH_P_U_FOR_FORMS" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@CurName" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="NSI_CURRENCY_NAME" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_SEARCH_P_U_FOR_FORMS" DbObjectType="View" FillMethodModifier="Public" FillMethodName="FillByPayInIDForVatInv" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByPayInIDForVatInv" GeneratorSourceName="FillByPayInIDForVatInv" GetMethodModifier="Public" GetMethodName="GetDataByPayInIDForVatInv" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByPayInIDForVatInv" UserSourceName="FillByPayInIDForVatInv">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT VIEW_SEARCH_P_U_FOR_FORMS.CALENDAR_PLAN_NUMBER, VIEW_SEARCH_P_U_FOR_FORMS.COST, VIEW_SEARCH_P_U_FOR_FORMS.COST_PROTOCOL_NUMBER, VIEW_SEARCH_P_U_FOR_FORMS.CP_STAGE_END_DATE, VIEW_SEARCH_P_U_FOR_FORMS.CP_STAGE_ID, VIEW_SEARCH_P_U_FOR_FORMS.CP_STAGE_NUMBER, VIEW_SEARCH_P_U_FOR_FORMS.CP_STAGE_START_DATE, VIEW_SEARCH_P_U_FOR_FORMS.DIRECT_NUMBER, VIEW_SEARCH_P_U_FOR_FORMS.DIRECT_NUMBER_ID, VIEW_SEARCH_P_U_FOR_FORMS.GUILD_BILL_NUMBER, VIEW_SEARCH_P_U_FOR_FORMS.GUILD_BILL_NUMBER_ID, VIEW_SEARCH_P_U_FOR_FORMS.ID, VIEW_SEARCH_P_U_FOR_FORMS.INVOICE_IN_SUM, VIEW_SEARCH_P_U_FOR_FORMS.INVOICE_OUT_NUMBER, VIEW_SEARCH_P_U_FOR_FORMS.NAME, VIEW_SEARCH_P_U_FOR_FORMS.NSI_CURRENCY_NAME, VIEW_SEARCH_P_U_FOR_FORMS.NSI_METER_NAME, VIEW_SEARCH_P_U_FOR_FORMS.NSI_PRODUCT_ID, VIEW_SEARCH_P_U_FOR_FORMS.NSI_PRODUCT_STATE_ID, VIEW_SEARCH_P_U_FOR_FORMS.NSI_PRODUCT_STATE_NAME, VIEW_SEARCH_P_U_FOR_FORMS.NSI_PROD_GROUP_NAME, VIEW_SEARCH_P_U_FOR_FORMS.N_DRAWING, VIEW_SEARCH_P_U_FOR_FORMS.PAYMENT_IN_SUM_CUR, VIEW_SEARCH_P_U_FOR_FORMS.PAYMENT_IN_SUM_RUB, VIEW_SEARCH_P_U_FOR_FORMS.PAY_PER, VIEW_SEARCH_P_U_FOR_FORMS.PID, VIEW_SEARCH_P_U_FOR_FORMS.PROD_GROUP, VIEW_SEARCH_P_U_FOR_FORMS.TYPE, VIEW_SEARCH_P_U_FOR_FORMS.VAT_INVOICE_DATE, VIEW_SEARCH_P_U_FOR_FORMS.VAT_INVOICE_ID, VIEW_SEARCH_P_U_FOR_FORMS.VAT_INVOICE_NUMBER FROM VIEW_SEARCH_P_U_FOR_FORMS INNER JOIN PAYMENT_IN_ITEM ON VIEW_SEARCH_P_U_FOR_FORMS.ID = PAYMENT_IN_ITEM.PRODUCT_UNIT_ID WHERE (PAYMENT_IN_ITEM.PAYMENT_IN_ID = @PayInID) AND (VIEW_SEARCH_P_U_FOR_FORMS.TYPE = 0) AND (VIEW_SEARCH_P_U_FOR_FORMS.PAY_PER &gt;= @PayPer) OR (PAYMENT_IN_ITEM.PAYMENT_IN_ID = @PayInID) AND (VIEW_SEARCH_P_U_FOR_FORMS.TYPE = 1) AND (VIEW_SEARCH_P_U_FOR_FORMS.PAY_PER &gt;= @PayPer) AND (VIEW_SEARCH_P_U_FOR_FORMS.NSI_PRODUCT_STATE_ID = 3)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="PayInID" ColumnName="PAYMENT_IN_ID" DataSourceName="FSO2.dbo.PAYMENT_IN_ITEM" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@PayInID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="PAYMENT_IN_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="PayPer" ColumnName="PAY_PER" DataSourceName="FSO2.dbo.VIEW_SEARCH_P_U_FOR_FORMS" DataTypeServer="money" DbType="Currency" Direction="Input" ParameterName="@PayPer" Precision="0" ProviderType="Money" Scale="0" Size="8" SourceColumn="PAY_PER" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_SEARCH_P_U_FOR_FORMS" DbObjectType="View" FillMethodModifier="Public" FillMethodName="FillByPID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByPID" GeneratorSourceName="FillByPID" GetMethodModifier="Public" GetMethodName="GetDataByPID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByPID" UserSourceName="FillByPID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT CALENDAR_PLAN_NUMBER, COST, COST_PROTOCOL_NUMBER, CP_STAGE_END_DATE, CP_STAGE_ID, CP_STAGE_NUMBER, CP_STAGE_START_DATE, DIRECT_NUMBER, DIRECT_NUMBER_ID, GUILD_BILL_NUMBER, GUILD_BILL_NUMBER_ID, ID, INVOICE_IN_SUM, INVOICE_OUT_NUMBER, NAME, NSI_CURRENCY_NAME, NSI_METER_NAME, NSI_PRODUCT_ID, NSI_PRODUCT_STATE_ID, NSI_PRODUCT_STATE_NAME, NSI_PROD_GROUP_NAME, N_DRAWING, PAYMENT_IN_SUM_CUR, PAYMENT_IN_SUM_RUB, PAY_PER, PID, PROD_GROUP, TYPE, VAT_INVOICE_DATE, VAT_INVOICE_ID, VAT_INVOICE_NUMBER FROM VIEW_SEARCH_P_U_FOR_FORMS WHERE (PID = @PID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="PID" ColumnName="PID" DataSourceName="FSO2.dbo.VIEW_SEARCH_P_U_FOR_FORMS" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_SEARCH_P_U_FOR_FORMS" DbObjectType="View" FillMethodModifier="Public" FillMethodName="FillByPidCurName" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByPidCurName" GeneratorSourceName="FillByPidCurName" GetMethodModifier="Public" GetMethodName="GetDataByPidCurName" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByPidCurName" UserSourceName="FillByPidCurName">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT CALENDAR_PLAN_NUMBER, COST, COST_PROTOCOL_NUMBER, CP_STAGE_END_DATE, CP_STAGE_ID, CP_STAGE_NUMBER, CP_STAGE_START_DATE, DIRECT_NUMBER, DIRECT_NUMBER_ID, GUILD_BILL_NUMBER, GUILD_BILL_NUMBER_ID, ID, INVOICE_IN_SUM, INVOICE_OUT_NUMBER, NAME, NSI_CURRENCY_NAME, NSI_METER_NAME, NSI_PRODUCT_ID, NSI_PRODUCT_STATE_ID, NSI_PRODUCT_STATE_NAME, NSI_PROD_GROUP_NAME, N_DRAWING, PAYMENT_IN_SUM_CUR, PAYMENT_IN_SUM_RUB, PAY_PER, PID, PROD_GROUP, TYPE, VAT_INVOICE_DATE, VAT_INVOICE_ID, VAT_INVOICE_NUMBER FROM VIEW_SEARCH_P_U_FOR_FORMS WHERE (PID = @PID) AND (NSI_CURRENCY_NAME = @CurName)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="PID" ColumnName="PID" DataSourceName="FSO2.dbo.VIEW_SEARCH_P_U_FOR_FORMS" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="CurName" ColumnName="NSI_CURRENCY_NAME" DataSourceName="FSO2.dbo.VIEW_SEARCH_P_U_FOR_FORMS" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@CurName" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="NSI_CURRENCY_NAME" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_SEARCH_P_U_FOR_FORMS" DbObjectType="View" FillMethodModifier="Public" FillMethodName="FillByPidForDirect" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetByPidForDirect" GeneratorSourceName="FillByPidForDirect" GetMethodModifier="Public" GetMethodName="GetByPidForDirect" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetByPidForDirect" UserSourceName="FillByPidForDirect">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT CALENDAR_PLAN_NUMBER, COST, COST_PROTOCOL_NUMBER, CP_STAGE_END_DATE, CP_STAGE_ID, CP_STAGE_NUMBER, CP_STAGE_START_DATE, DIRECT_NUMBER, DIRECT_NUMBER_ID, GUILD_BILL_NUMBER, GUILD_BILL_NUMBER_ID, ID, INVOICE_IN_SUM, INVOICE_OUT_NUMBER, NAME, NSI_CURRENCY_NAME, NSI_METER_NAME, NSI_PRODUCT_ID, NSI_PRODUCT_STATE_ID, NSI_PRODUCT_STATE_NAME, NSI_PROD_GROUP_NAME, N_DRAWING, PAYMENT_IN_SUM_CUR, PAYMENT_IN_SUM_RUB, PAY_PER, PID, PROD_GROUP, TYPE, VAT_INVOICE_DATE, VAT_INVOICE_ID, VAT_INVOICE_NUMBER FROM VIEW_SEARCH_P_U_FOR_FORMS WHERE (PID = @PID) AND (NSI_PRODUCT_STATE_ID = 1) AND (TYPE = 1)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="PID" ColumnName="PID" DataSourceName="FSO2.dbo.VIEW_SEARCH_P_U_FOR_FORMS" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_SEARCH_P_U_FOR_FORMS" DbObjectType="View" FillMethodModifier="Public" FillMethodName="FillByPidForGuildBill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByPidForGuildBill" GeneratorSourceName="FillByPidForGuildBill" GetMethodModifier="Public" GetMethodName="GetDataByPidForGuildBill" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByPidForGuildBill" UserSourceName="FillByPidForGuildBill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT CALENDAR_PLAN_NUMBER, COST, COST_PROTOCOL_NUMBER, CP_STAGE_END_DATE, CP_STAGE_ID, CP_STAGE_NUMBER, CP_STAGE_START_DATE, DIRECT_NUMBER, DIRECT_NUMBER_ID, GUILD_BILL_NUMBER, GUILD_BILL_NUMBER_ID, ID, INVOICE_IN_SUM, INVOICE_OUT_NUMBER, NAME, NSI_CURRENCY_NAME, NSI_METER_NAME, NSI_PRODUCT_ID, NSI_PRODUCT_STATE_ID, NSI_PRODUCT_STATE_NAME, NSI_PROD_GROUP_NAME, N_DRAWING, PAYMENT_IN_SUM_CUR, PAYMENT_IN_SUM_RUB, PAY_PER, PID, PROD_GROUP, TYPE, VAT_INVOICE_DATE, VAT_INVOICE_ID, VAT_INVOICE_NUMBER FROM VIEW_SEARCH_P_U_FOR_FORMS WHERE (PID = @PID) AND (TYPE = 1) AND (NSI_PRODUCT_STATE_ID = 2)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="PID" ColumnName="PID" DataSourceName="FSO2.dbo.VIEW_SEARCH_P_U_FOR_FORMS" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_SEARCH_P_U_FOR_FORMS" DbObjectType="View" FillMethodModifier="Public" FillMethodName="FillByPidForVatInvoice" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByPidForVatInvoice" GeneratorSourceName="FillByPidForVatInvoice" GetMethodModifier="Public" GetMethodName="GetDataByPidForVatInvoice" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByPidForVatInvoice" UserSourceName="FillByPidForVatInvoice">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT CALENDAR_PLAN_NUMBER, COST, COST_PROTOCOL_NUMBER, CP_STAGE_END_DATE, CP_STAGE_ID, CP_STAGE_NUMBER, CP_STAGE_START_DATE, DIRECT_NUMBER, DIRECT_NUMBER_ID, GUILD_BILL_NUMBER, GUILD_BILL_NUMBER_ID, ID, INVOICE_IN_SUM, INVOICE_OUT_NUMBER, NAME, NSI_CURRENCY_NAME, NSI_METER_NAME, NSI_PRODUCT_ID, NSI_PRODUCT_STATE_ID, NSI_PRODUCT_STATE_NAME, NSI_PROD_GROUP_NAME, N_DRAWING, PAYMENT_IN_SUM_CUR, PAYMENT_IN_SUM_RUB, PAY_PER, PID, PROD_GROUP, TYPE, VAT_INVOICE_DATE, VAT_INVOICE_ID, VAT_INVOICE_NUMBER FROM VIEW_SEARCH_P_U_FOR_FORMS WHERE (PID = @PID) AND (TYPE = 0) OR (PID = @PID) AND (TYPE = 1) AND (NSI_PRODUCT_STATE_ID = 3)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="PID" ColumnName="PID" DataSourceName="FSO2.dbo.VIEW_SEARCH_P_U_FOR_FORMS" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_SEARCH_P_U_FOR_FORMS" DbObjectType="View" FillMethodModifier="Public" FillMethodName="FillByPrUnitID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByPrUnitID" GeneratorSourceName="FillByPrUnitID" GetMethodModifier="Public" GetMethodName="GetDataByPrUnitID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByPrUnitID" UserSourceName="FillByPrUnitID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT CALENDAR_PLAN_NUMBER, COST, COST_PROTOCOL_NUMBER, CP_STAGE_END_DATE, CP_STAGE_ID, CP_STAGE_NUMBER, CP_STAGE_START_DATE, DIRECT_NUMBER, DIRECT_NUMBER_ID, GUILD_BILL_NUMBER, GUILD_BILL_NUMBER_ID, ID, INVOICE_IN_SUM, INVOICE_OUT_NUMBER, NAME, NSI_CURRENCY_NAME, NSI_METER_NAME, NSI_PRODUCT_ID, NSI_PRODUCT_STATE_ID, NSI_PRODUCT_STATE_NAME, NSI_PROD_GROUP_NAME, N_DRAWING, PAYMENT_IN_SUM_CUR, PAYMENT_IN_SUM_RUB, PAY_PER, PID, PROD_GROUP, TYPE, VAT_INVOICE_DATE, VAT_INVOICE_ID, VAT_INVOICE_NUMBER FROM VIEW_SEARCH_P_U_FOR_FORMS WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="FSO2.dbo.VIEW_SEARCH_P_U_FOR_FORMS" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_SEARCH_P_U_FOR_FORMS" DbObjectType="View" FillMethodModifier="Public" FillMethodName="FillByVatInvID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByVatInvID" GeneratorSourceName="FillByVatInvID" GetMethodModifier="Public" GetMethodName="GetDataByVatInvID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByVatInvID" UserSourceName="FillByVatInvID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT CALENDAR_PLAN_NUMBER, COST, COST_PROTOCOL_NUMBER, CP_STAGE_END_DATE, CP_STAGE_ID, CP_STAGE_NUMBER, CP_STAGE_START_DATE, DIRECT_NUMBER, DIRECT_NUMBER_ID, GUILD_BILL_NUMBER, GUILD_BILL_NUMBER_ID, ID, INVOICE_IN_SUM, INVOICE_OUT_NUMBER, NAME, NSI_CURRENCY_NAME, NSI_METER_NAME, NSI_PRODUCT_ID, NSI_PRODUCT_STATE_ID, NSI_PRODUCT_STATE_NAME, NSI_PROD_GROUP_NAME, N_DRAWING, PAYMENT_IN_SUM_CUR, PAYMENT_IN_SUM_RUB, PAY_PER, PID, PROD_GROUP, TYPE, VAT_INVOICE_DATE, VAT_INVOICE_ID, VAT_INVOICE_NUMBER FROM VIEW_SEARCH_P_U_FOR_FORMS WHERE (VAT_INVOICE_ID = @VatInvID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="VatInvID" ColumnName="VAT_INVOICE_ID" DataSourceName="FSO2.dbo.VIEW_SEARCH_P_U_FOR_FORMS" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@VatInvID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="VAT_INVOICE_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_SEARCH_P_U_FOR_FORMS" DbObjectType="View" FillMethodModifier="Public" FillMethodName="FillByVatInvIdCurName" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByVatInvIdCurName" GeneratorSourceName="FillByVatInvIdCurName" GetMethodModifier="Public" GetMethodName="GetDataByVatInvIdCurName" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByVatInvIdCurName" UserSourceName="FillByVatInvIdCurName">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT CALENDAR_PLAN_NUMBER, COST, COST_PROTOCOL_NUMBER, CP_STAGE_END_DATE, CP_STAGE_ID, CP_STAGE_NUMBER, CP_STAGE_START_DATE, DIRECT_NUMBER, DIRECT_NUMBER_ID, GUILD_BILL_NUMBER, GUILD_BILL_NUMBER_ID, ID, INVOICE_IN_SUM, INVOICE_OUT_NUMBER, NAME, NSI_CURRENCY_NAME, NSI_METER_NAME, NSI_PRODUCT_ID, NSI_PRODUCT_STATE_ID, NSI_PRODUCT_STATE_NAME, NSI_PROD_GROUP_NAME, N_DRAWING, PAYMENT_IN_SUM_CUR, PAYMENT_IN_SUM_RUB, PAY_PER, PID, PROD_GROUP, TYPE, VAT_INVOICE_DATE, VAT_INVOICE_ID, VAT_INVOICE_NUMBER FROM VIEW_SEARCH_P_U_FOR_FORMS WHERE (VAT_INVOICE_ID = @VatInvID) AND (NSI_CURRENCY_NAME = @CurName)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="VatInvID" ColumnName="VAT_INVOICE_ID" DataSourceName="FSO2.dbo.VIEW_SEARCH_P_U_FOR_FORMS" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@VatInvID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="VAT_INVOICE_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="CurName" ColumnName="NSI_CURRENCY_NAME" DataSourceName="FSO2.dbo.VIEW_SEARCH_P_U_FOR_FORMS" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@CurName" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="NSI_CURRENCY_NAME" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_SEARCH_P_U_FOR_FORMS" DbObjectType="View" FillMethodModifier="Public" FillMethodName="FillForVatInvIsGLet" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataForVatInvIsGLet" GeneratorSourceName="FillForVatInvIsGLet" GetMethodModifier="Public" GetMethodName="GetDataForVatInvIsGLet" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataForVatInvIsGLet" UserSourceName="FillForVatInvIsGLet">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT CALENDAR_PLAN_NUMBER, COST, COST_PROTOCOL_NUMBER, CP_STAGE_END_DATE, CP_STAGE_ID, CP_STAGE_NUMBER, CP_STAGE_START_DATE, DIRECT_NUMBER, DIRECT_NUMBER_ID, GUILD_BILL_NUMBER, GUILD_BILL_NUMBER_ID, ID, INVOICE_IN_SUM, INVOICE_OUT_NUMBER, NAME, NSI_CURRENCY_NAME, NSI_METER_NAME, NSI_PRODUCT_ID, NSI_PRODUCT_STATE_ID, NSI_PRODUCT_STATE_NAME, NSI_PROD_GROUP_NAME, N_DRAWING, PAYMENT_IN_SUM_CUR, PAYMENT_IN_SUM_RUB, PAY_PER, PID, PROD_GROUP, TYPE, VAT_INVOICE_DATE, VAT_INVOICE_ID, VAT_INVOICE_NUMBER FROM VIEW_SEARCH_P_U_FOR_FORMS WHERE (PID = @PID) AND (TYPE = 0) AND (PAY_PER &gt;= 100) OR (PID = @PID) AND (TYPE = 1) AND (PAY_PER &gt;= 100) AND (NSI_PRODUCT_STATE_ID = 3)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="PID" ColumnName="PID" DataSourceName="FSO2.dbo.VIEW_SEARCH_P_U_FOR_FORMS" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="AGGR_PU_PAY_INTableAdapter" GeneratorDataComponentClassName="AGGR_PU_PAY_INTableAdapter" Name="AGGR_PU_PAY_IN" UserDataComponentName="AGGR_PU_PAY_INTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        PRODUCT_UNIT.NAME, COUNT(PAYMENT_IN_ITEM.PRODUCT_UNIT_ID) AS COUNT, NSI_METER.SHORT_NAME AS NSI_METER_NAME, 
                         SUM(PAYMENT_IN_ITEM.SUM_CUR) AS PAY_SUM_CUR, SUM(PAYMENT_IN_ITEM.SUM_RUB) AS PAY_SUM_RUB, PRODUCT_UNIT.NSI_PRODUCT_ID, 
                         PAYMENT_IN_ITEM.PAYMENT_IN_ID
FROM            NSI_METER RIGHT OUTER JOIN
                         NSI_PRODUCT ON NSI_METER.ID = NSI_PRODUCT.NSI_METER_ID RIGHT OUTER JOIN
                         PAYMENT_IN_ITEM INNER JOIN
                         PRODUCT_UNIT ON PAYMENT_IN_ITEM.PRODUCT_UNIT_ID = PRODUCT_UNIT.ID ON NSI_PRODUCT.ID = PRODUCT_UNIT.NSI_PRODUCT_ID
GROUP BY PRODUCT_UNIT.NAME, NSI_METER.SHORT_NAME, PRODUCT_UNIT.NSI_PRODUCT_ID, PAYMENT_IN_ITEM.PAYMENT_IN_ID</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="NAME" DataSetColumn="NAME" />
              <Mapping SourceColumn="COUNT" DataSetColumn="COUNT" />
              <Mapping SourceColumn="NSI_METER_NAME" DataSetColumn="NSI_METER_NAME" />
              <Mapping SourceColumn="PAY_SUM_CUR" DataSetColumn="PAY_SUM_CUR" />
              <Mapping SourceColumn="PAY_SUM_RUB" DataSetColumn="PAY_SUM_RUB" />
              <Mapping SourceColumn="NSI_PRODUCT_ID" DataSetColumn="NSI_PRODUCT_ID" />
              <Mapping SourceColumn="PAYMENT_IN_ID" DataSetColumn="PAYMENT_IN_ID" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="VIEW_PAY_IN_ITEMTableAdapter" GeneratorDataComponentClassName="VIEW_PAY_IN_ITEMTableAdapter" Name="VIEW_PAY_IN_ITEM" UserDataComponentName="VIEW_PAY_IN_ITEMTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_PAY_IN_ITEM" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        ID, PRODUCT_UNIT_ID, PAYMENT_IN_ID, SUM_CUR, SUM_RUB, PRODUCT_UNIT_NAME, NSI_PRODUCT_STATE_NAME, PRODUCT_UNIT_TYPE, 
                         PRODUCT_UNIT_COST, INVOICE_IN_SUM, NSI_CURRENCY_NAME, COST_PROTOCOL_NUMBER, CP_STAGE_ID, CP_STAGE_NUMBER, CP_STAGE_START_DATE, 
                         CP_STAGE_END_DATE, NSI_PRODUCT_STATE_ID, NSI_PRODUCT_ID, GUILD_BILL_NUMBER, DIRECT_NUMBER, DIRECT_NUMBER_ID, GUILD_BILL_NUMBER_ID, 
                         VAT_INVOICE_ID, PAY_PER, PID, VAT_INVOICE_NUMBER, NSI_METER_NAME, VAT_INVOICE_DATE, INVOICE_OUT_NUMBER, PROD_GROUP_NAME, N_DRAWING, 
                         CALENDAR_PLAN_NUMBER
FROM            VIEW_PAY_IN_ITEM</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="PRODUCT_UNIT_ID" DataSetColumn="PRODUCT_UNIT_ID" />
              <Mapping SourceColumn="PAYMENT_IN_ID" DataSetColumn="PAYMENT_IN_ID" />
              <Mapping SourceColumn="SUM_CUR" DataSetColumn="SUM_CUR" />
              <Mapping SourceColumn="SUM_RUB" DataSetColumn="SUM_RUB" />
              <Mapping SourceColumn="PRODUCT_UNIT_NAME" DataSetColumn="PRODUCT_UNIT_NAME" />
              <Mapping SourceColumn="NSI_PRODUCT_STATE_NAME" DataSetColumn="NSI_PRODUCT_STATE_NAME" />
              <Mapping SourceColumn="PRODUCT_UNIT_TYPE" DataSetColumn="PRODUCT_UNIT_TYPE" />
              <Mapping SourceColumn="PRODUCT_UNIT_COST" DataSetColumn="PRODUCT_UNIT_COST" />
              <Mapping SourceColumn="INVOICE_IN_SUM" DataSetColumn="INVOICE_IN_SUM" />
              <Mapping SourceColumn="NSI_CURRENCY_NAME" DataSetColumn="NSI_CURRENCY_NAME" />
              <Mapping SourceColumn="COST_PROTOCOL_NUMBER" DataSetColumn="COST_PROTOCOL_NUMBER" />
              <Mapping SourceColumn="CP_STAGE_ID" DataSetColumn="CP_STAGE_ID" />
              <Mapping SourceColumn="CP_STAGE_NUMBER" DataSetColumn="CP_STAGE_NUMBER" />
              <Mapping SourceColumn="CP_STAGE_START_DATE" DataSetColumn="CP_STAGE_START_DATE" />
              <Mapping SourceColumn="CP_STAGE_END_DATE" DataSetColumn="CP_STAGE_END_DATE" />
              <Mapping SourceColumn="NSI_PRODUCT_STATE_ID" DataSetColumn="NSI_PRODUCT_STATE_ID" />
              <Mapping SourceColumn="NSI_PRODUCT_ID" DataSetColumn="NSI_PRODUCT_ID" />
              <Mapping SourceColumn="GUILD_BILL_NUMBER" DataSetColumn="GUILD_BILL_NUMBER" />
              <Mapping SourceColumn="DIRECT_NUMBER" DataSetColumn="DIRECT_NUMBER" />
              <Mapping SourceColumn="DIRECT_NUMBER_ID" DataSetColumn="DIRECT_NUMBER_ID" />
              <Mapping SourceColumn="GUILD_BILL_NUMBER_ID" DataSetColumn="GUILD_BILL_NUMBER_ID" />
              <Mapping SourceColumn="VAT_INVOICE_ID" DataSetColumn="VAT_INVOICE_ID" />
              <Mapping SourceColumn="PAY_PER" DataSetColumn="PAY_PER" />
              <Mapping SourceColumn="PID" DataSetColumn="PID" />
              <Mapping SourceColumn="VAT_INVOICE_NUMBER" DataSetColumn="VAT_INVOICE_NUMBER" />
              <Mapping SourceColumn="NSI_METER_NAME" DataSetColumn="NSI_METER_NAME" />
              <Mapping SourceColumn="VAT_INVOICE_DATE" DataSetColumn="VAT_INVOICE_DATE1" />
              <Mapping SourceColumn="INVOICE_OUT_NUMBER" DataSetColumn="INVOICE_OUT_NUMBER" />
              <Mapping SourceColumn="PROD_GROUP_NAME" DataSetColumn="PROD_GROUP_NAME" />
              <Mapping SourceColumn="N_DRAWING" DataSetColumn="N_DRAWING" />
              <Mapping SourceColumn="CALENDAR_PLAN_NUMBER" DataSetColumn="CALENDAR_PLAN_NUMBER" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_PAY_IN_ITEM" DbObjectType="View" FillMethodModifier="Public" FillMethodName="FillByPayInID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByPayInID" GeneratorSourceName="FillByPayInID" GetMethodModifier="Public" GetMethodName="GetDataByPayInID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByPayInID" UserSourceName="FillByPayInID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT CALENDAR_PLAN_NUMBER, COST_PROTOCOL_NUMBER, CP_STAGE_END_DATE, CP_STAGE_ID, CP_STAGE_NUMBER, CP_STAGE_START_DATE, DIRECT_NUMBER, DIRECT_NUMBER_ID, GUILD_BILL_NUMBER, GUILD_BILL_NUMBER_ID, ID, INVOICE_IN_SUM, INVOICE_OUT_NUMBER, NSI_CURRENCY_NAME, NSI_METER_NAME, NSI_PRODUCT_ID, NSI_PRODUCT_STATE_ID, NSI_PRODUCT_STATE_NAME, N_DRAWING, PAYMENT_IN_ID, PAY_PER, PID, PRODUCT_UNIT_COST, PRODUCT_UNIT_ID, PRODUCT_UNIT_NAME, PRODUCT_UNIT_TYPE, PROD_GROUP_NAME, SUM_CUR, SUM_RUB, VAT_INVOICE_DATE, VAT_INVOICE_ID, VAT_INVOICE_NUMBER FROM VIEW_PAY_IN_ITEM WHERE (PAYMENT_IN_ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="PAYMENT_IN_ID" DataSourceName="FSO2.dbo.VIEW_PAY_IN_ITEM" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="PAYMENT_IN_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.getPaySumCurByDate" DbObjectType="Function" GenerateShortCommands="true" GeneratorSourceName="getPaySumCurByDate" Modifier="Public" Name="getPaySumCurByDate" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="getPaySumCurByDate">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.getPaySumCurByDate</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="money" DbType="Currency" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="19" ProviderType="Money" Scale="4" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@PUId" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="date" DbType="Date" Direction="Input" ParameterName="@PayDate" Precision="10" ProviderType="Date" Scale="0" Size="3" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="AGGR_PU_INV_OUTTableAdapter" GeneratorDataComponentClassName="AGGR_PU_INV_OUTTableAdapter" Name="AGGR_PU_INV_OUT" UserDataComponentName="AGGR_PU_INV_OUTTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT     PRODUCT_UNIT.NAME AS PRODUCT_UNIT_NAME, COUNT(INVOICE_OUT_ITEM.PRODUCT_UNIT_ID) AS COUNT, 
                      NSI_METER.SHORT_NAME AS NSI_METER_NAME, SUM(INVOICE_OUT_ITEM.SUM) AS INV_SUM, PRODUCT_UNIT.NSI_PRODUCT_ID, 
                      INVOICE_OUT_ITEM.INVOICE_OUT_ID
FROM         INVOICE_OUT_ITEM INNER JOIN
                      PRODUCT_UNIT ON INVOICE_OUT_ITEM.PRODUCT_UNIT_ID = PRODUCT_UNIT.ID LEFT OUTER JOIN
                      NSI_METER RIGHT OUTER JOIN
                      NSI_PRODUCT ON NSI_METER.ID = NSI_PRODUCT.NSI_METER_ID ON PRODUCT_UNIT.NSI_PRODUCT_ID = NSI_PRODUCT.ID
GROUP BY PRODUCT_UNIT.NAME, NSI_METER.SHORT_NAME, PRODUCT_UNIT.NSI_PRODUCT_ID, INVOICE_OUT_ITEM.INVOICE_OUT_ID</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="PRODUCT_UNIT_NAME" DataSetColumn="PRODUCT_UNIT_NAME" />
              <Mapping SourceColumn="COUNT" DataSetColumn="COUNT" />
              <Mapping SourceColumn="NSI_METER_NAME" DataSetColumn="NSI_METER_NAME" />
              <Mapping SourceColumn="INV_SUM" DataSetColumn="INV_SUM" />
              <Mapping SourceColumn="NSI_PRODUCT_ID" DataSetColumn="NSI_PRODUCT_ID" />
              <Mapping SourceColumn="INVOICE_OUT_ID" DataSetColumn="INVOICE_OUT_ID" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="VIEW_INV_OUT_ITEMTableAdapter" GeneratorDataComponentClassName="VIEW_INV_OUT_ITEMTableAdapter" Name="VIEW_INV_OUT_ITEM" UserDataComponentName="VIEW_INV_OUT_ITEMTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_INV_OUT_ITEM" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        ID, PRODUCT_UNIT_ID, INVOICE_OUT_ID, SUM, PID, PRODUCT_UNIT_NAME, NSI_PRODUCT_STATE_NAME, PRODUCT_UNIT_TYPE, PRODUCT_UNIT_COST, 
                         INVOICE_IN_SUM, NSI_CURRENCY_NAME, COST_PROTOCOL_NUMBER, CP_STAGE_ID, CP_STAGE_NUMBER, CP_STAGE_START_DATE, CP_STAGE_END_DATE, 
                         NSI_PRODUCT_STATE_ID, NSI_PRODUCT_ID, GUILD_BILL_NUMBER, DIRECT_NUMBER, DIRECT_NUMBER_ID, GUILD_BILL_NUMBER_ID, VAT_INVOICE_ID, 
                         VAT_INVOICE_NUMBER, NSI_METER_NAME, PAY_PER, NSI_PROD_GROUP_NAME, PROD_GROUP, VAT_INVOICE_DATE, N_DRAWING
FROM            VIEW_INV_OUT_ITEM</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="PRODUCT_UNIT_ID" DataSetColumn="PRODUCT_UNIT_ID" />
              <Mapping SourceColumn="INVOICE_OUT_ID" DataSetColumn="INVOICE_OUT_ID" />
              <Mapping SourceColumn="SUM" DataSetColumn="SUM" />
              <Mapping SourceColumn="PID" DataSetColumn="PID" />
              <Mapping SourceColumn="PRODUCT_UNIT_NAME" DataSetColumn="PRODUCT_UNIT_NAME" />
              <Mapping SourceColumn="NSI_PRODUCT_STATE_NAME" DataSetColumn="NSI_PRODUCT_STATE_NAME" />
              <Mapping SourceColumn="PRODUCT_UNIT_TYPE" DataSetColumn="PRODUCT_UNIT_TYPE" />
              <Mapping SourceColumn="PRODUCT_UNIT_COST" DataSetColumn="PRODUCT_UNIT_COST" />
              <Mapping SourceColumn="INVOICE_IN_SUM" DataSetColumn="INVOICE_IN_SUM" />
              <Mapping SourceColumn="NSI_CURRENCY_NAME" DataSetColumn="NSI_CURRENCY_NAME" />
              <Mapping SourceColumn="COST_PROTOCOL_NUMBER" DataSetColumn="COST_PROTOCOL_NUMBER" />
              <Mapping SourceColumn="CP_STAGE_ID" DataSetColumn="CP_STAGE_ID" />
              <Mapping SourceColumn="CP_STAGE_NUMBER" DataSetColumn="CP_STAGE_NUMBER" />
              <Mapping SourceColumn="CP_STAGE_START_DATE" DataSetColumn="CP_STAGE_START_DATE" />
              <Mapping SourceColumn="CP_STAGE_END_DATE" DataSetColumn="CP_STAGE_END_DATE" />
              <Mapping SourceColumn="NSI_PRODUCT_STATE_ID" DataSetColumn="NSI_PRODUCT_STATE_ID" />
              <Mapping SourceColumn="NSI_PRODUCT_ID" DataSetColumn="NSI_PRODUCT_ID" />
              <Mapping SourceColumn="GUILD_BILL_NUMBER" DataSetColumn="GUILD_BILL_NUMBER" />
              <Mapping SourceColumn="DIRECT_NUMBER" DataSetColumn="DIRECT_NUMBER" />
              <Mapping SourceColumn="DIRECT_NUMBER_ID" DataSetColumn="DIRECT_NUMBER_ID" />
              <Mapping SourceColumn="GUILD_BILL_NUMBER_ID" DataSetColumn="GUILD_BILL_NUMBER_ID" />
              <Mapping SourceColumn="VAT_INVOICE_ID" DataSetColumn="VAT_INVOICE_ID" />
              <Mapping SourceColumn="VAT_INVOICE_NUMBER" DataSetColumn="VAT_INVOICE_NUMBER" />
              <Mapping SourceColumn="NSI_METER_NAME" DataSetColumn="NSI_METER_NAME" />
              <Mapping SourceColumn="PAY_PER" DataSetColumn="PAY_PER" />
              <Mapping SourceColumn="NSI_PROD_GROUP_NAME" DataSetColumn="NSI_PROD_GROUP_NAME" />
              <Mapping SourceColumn="PROD_GROUP" DataSetColumn="PROD_GROUP" />
              <Mapping SourceColumn="VAT_INVOICE_DATE" DataSetColumn="VAT_INVOICE_DATE" />
              <Mapping SourceColumn="N_DRAWING" DataSetColumn="N_DRAWING" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_INV_OUT_ITEM" DbObjectType="View" FillMethodModifier="Public" FillMethodName="FillByInvOutID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByInvOutID" GeneratorSourceName="FillByInvOutID" GetMethodModifier="Public" GetMethodName="GetDataByInvOutID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByInvOutID" UserSourceName="FillByInvOutID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT COST_PROTOCOL_NUMBER, CP_STAGE_END_DATE, CP_STAGE_ID, CP_STAGE_NUMBER, CP_STAGE_START_DATE, DIRECT_NUMBER, DIRECT_NUMBER_ID, GUILD_BILL_NUMBER, GUILD_BILL_NUMBER_ID, ID, INVOICE_IN_SUM, INVOICE_OUT_ID, NSI_CURRENCY_NAME, NSI_METER_NAME, NSI_PRODUCT_ID, NSI_PRODUCT_STATE_ID, NSI_PRODUCT_STATE_NAME, NSI_PROD_GROUP_NAME, N_DRAWING, PAY_PER, PID, PRODUCT_UNIT_COST, PRODUCT_UNIT_ID, PRODUCT_UNIT_NAME, PRODUCT_UNIT_TYPE, PROD_GROUP, SUM, VAT_INVOICE_DATE, VAT_INVOICE_ID, VAT_INVOICE_NUMBER FROM VIEW_INV_OUT_ITEM WHERE (INVOICE_OUT_ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="ID" ColumnName="INVOICE_OUT_ID" DataSourceName="FSO2.dbo.VIEW_INV_OUT_ITEM" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="INVOICE_OUT_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.getInvSumByDate" DbObjectType="Function" GenerateShortCommands="true" GeneratorSourceName="getInvSumByDate" Modifier="Public" Name="getInvSumByDate" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="getInvSumByDate">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.getInvSumByDate</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="money" DbType="Currency" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="19" ProviderType="Money" Scale="4" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@PUId" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="date" DbType="Date" Direction="Input" ParameterName="@InvDate" Precision="10" ProviderType="Date" Scale="0" Size="3" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="VIEW_DIRECT_ITEMTableAdapter" GeneratorDataComponentClassName="VIEW_DIRECT_ITEMTableAdapter" Name="VIEW_DIRECT_ITEM" UserDataComponentName="VIEW_DIRECT_ITEMTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_DIRECT_ITEM" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT PRODUCT_UNIT_NAME, NSI_PRODUCT_STATE_NAME, PRODUCT_UNIT_TYPE, PRODUCT_UNIT_COST, INVOICE_IN_SUM, NSI_CURRENCY_NAME, COST_PROTOCOL_NUMBER, CP_STAGE_ID, CP_STAGE_NUMBER, CP_STAGE_START_DATE, CP_STAGE_END_DATE, NSI_PRODUCT_STATE_ID, NSI_PRODUCT_ID, GUILD_BILL_NUMBER, DIRECT_NUMBER, DIRECT_NUMBER_ID, GUILD_BILL_NUMBER_ID, VAT_INVOICE_ID, VAT_INVOICE_NUMBER, NSI_METER_NAME, PAY_PER, ID,VAT_INVOICE_DATE,INVOICE_OUT_NUMBER FROM dbo.VIEW_DIRECT_ITEM</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="PRODUCT_UNIT_NAME" DataSetColumn="PRODUCT_UNIT_NAME" />
              <Mapping SourceColumn="NSI_PRODUCT_STATE_NAME" DataSetColumn="NSI_PRODUCT_STATE_NAME" />
              <Mapping SourceColumn="PRODUCT_UNIT_TYPE" DataSetColumn="PRODUCT_UNIT_TYPE" />
              <Mapping SourceColumn="PRODUCT_UNIT_COST" DataSetColumn="PRODUCT_UNIT_COST" />
              <Mapping SourceColumn="INVOICE_IN_SUM" DataSetColumn="INVOICE_IN_SUM" />
              <Mapping SourceColumn="NSI_CURRENCY_NAME" DataSetColumn="NSI_CURRENCY_NAME" />
              <Mapping SourceColumn="COST_PROTOCOL_NUMBER" DataSetColumn="COST_PROTOCOL_NUMBER" />
              <Mapping SourceColumn="CP_STAGE_ID" DataSetColumn="CP_STAGE_ID" />
              <Mapping SourceColumn="CP_STAGE_NUMBER" DataSetColumn="CP_STAGE_NUMBER" />
              <Mapping SourceColumn="CP_STAGE_START_DATE" DataSetColumn="CP_STAGE_START_DATE" />
              <Mapping SourceColumn="CP_STAGE_END_DATE" DataSetColumn="CP_STAGE_END_DATE" />
              <Mapping SourceColumn="NSI_PRODUCT_STATE_ID" DataSetColumn="NSI_PRODUCT_STATE_ID" />
              <Mapping SourceColumn="NSI_PRODUCT_ID" DataSetColumn="NSI_PRODUCT_ID" />
              <Mapping SourceColumn="GUILD_BILL_NUMBER" DataSetColumn="GUILD_BILL_NUMBER" />
              <Mapping SourceColumn="DIRECT_NUMBER" DataSetColumn="DIRECT_NUMBER" />
              <Mapping SourceColumn="DIRECT_NUMBER_ID" DataSetColumn="DIRECT_NUMBER_ID" />
              <Mapping SourceColumn="GUILD_BILL_NUMBER_ID" DataSetColumn="GUILD_BILL_NUMBER_ID" />
              <Mapping SourceColumn="VAT_INVOICE_ID" DataSetColumn="VAT_INVOICE_ID" />
              <Mapping SourceColumn="VAT_INVOICE_NUMBER" DataSetColumn="VAT_INVOICE_NUMBER" />
              <Mapping SourceColumn="NSI_METER_NAME" DataSetColumn="NSI_METER_NAME" />
              <Mapping SourceColumn="PAY_PER" DataSetColumn="PAY_PER" />
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="VAT_INVOICE_DATE" DataSetColumn="VAT_INVOICE_DATE" />
              <Mapping SourceColumn="INVOICE_OUT_NUMBER" DataSetColumn="INVOICE_OUT_NUMBER" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_DIRECT_ITEM" DbObjectType="View" FillMethodModifier="Public" FillMethodName="FillByDirectID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByDirectID" GeneratorSourceName="FillByDirectID" GetMethodModifier="Public" GetMethodName="GetDataByDirectID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByDirectID" UserSourceName="FillByDirectID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT COST_PROTOCOL_NUMBER, CP_STAGE_END_DATE, CP_STAGE_ID, CP_STAGE_NUMBER, CP_STAGE_START_DATE, DIRECT_NUMBER, DIRECT_NUMBER_ID, GUILD_BILL_NUMBER, GUILD_BILL_NUMBER_ID, ID, INVOICE_IN_SUM, INVOICE_OUT_NUMBER, NSI_CURRENCY_NAME, NSI_METER_NAME, NSI_PRODUCT_ID, NSI_PRODUCT_STATE_ID, NSI_PRODUCT_STATE_NAME, PAY_PER, PRODUCT_UNIT_COST, PRODUCT_UNIT_NAME, PRODUCT_UNIT_TYPE, VAT_INVOICE_DATE, VAT_INVOICE_ID, VAT_INVOICE_NUMBER FROM VIEW_DIRECT_ITEM WHERE (DIRECT_NUMBER_ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="ID" ColumnName="DIRECT_NUMBER_ID" DataSourceName="FSO2.dbo.VIEW_DIRECT_ITEM" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="DIRECT_NUMBER_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="VIEW_SEARCH_DIRECTTableAdapter" GeneratorDataComponentClassName="VIEW_SEARCH_DIRECTTableAdapter" Name="VIEW_SEARCH_DIRECT" UserDataComponentName="VIEW_SEARCH_DIRECTTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_SEARCH_DIRECT" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT CONTRACT_NUM, NSI_ORGANIZATION_SHORT_NAME, NSI_TYPE_OF_ACTIVITY_NAME, PID, ID, NUMBER, DATE,PROD_GROUPS FROM dbo.VIEW_SEARCH_DIRECT</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="CONTRACT_NUM" DataSetColumn="CONTRACT_NUM" />
              <Mapping SourceColumn="NSI_ORGANIZATION_SHORT_NAME" DataSetColumn="NSI_ORGANIZATION_SHORT_NAME" />
              <Mapping SourceColumn="NSI_TYPE_OF_ACTIVITY_NAME" DataSetColumn="NSI_TYPE_OF_ACTIVITY_NAME" />
              <Mapping SourceColumn="PID" DataSetColumn="PID" />
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="NUMBER" DataSetColumn="NUMBER" />
              <Mapping SourceColumn="DATE" DataSetColumn="DATE" />
              <Mapping SourceColumn="PROD_GROUPS" DataSetColumn="PROD_GROUPS" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_SEARCH_DIRECT" DbObjectType="View" FillMethodModifier="Public" FillMethodName="FillByPID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByPID" GeneratorSourceName="FillByPID" GetMethodModifier="Public" GetMethodName="GetDataByPID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByPID" UserSourceName="FillByPID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT CONTRACT_NUM, DATE, ID, NSI_ORGANIZATION_SHORT_NAME, NSI_TYPE_OF_ACTIVITY_NAME, NUMBER, PID, PROD_GROUPS FROM VIEW_SEARCH_DIRECT WHERE (PID = @PID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="PID" ColumnName="PID" DataSourceName="FSO2.dbo.VIEW_SEARCH_DIRECT" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="VIEW_SEARCH_GUILD_BILLTableAdapter" GeneratorDataComponentClassName="VIEW_SEARCH_GUILD_BILLTableAdapter" Name="VIEW_SEARCH_GUILD_BILL" UserDataComponentName="VIEW_SEARCH_GUILD_BILLTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_SEARCH_GUILD_BILL" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT ID, NUMBER, PID, CONTRACT_NUM, NSI_ORGANIZATION_SHORT_NAME, NSI_TYPE_OF_ACTIVITY_NAME, DATE,PROD_GROUPS FROM dbo.VIEW_SEARCH_GUILD_BILL</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="NUMBER" DataSetColumn="NUMBER" />
              <Mapping SourceColumn="PID" DataSetColumn="PID" />
              <Mapping SourceColumn="CONTRACT_NUM" DataSetColumn="CONTRACT_NUM" />
              <Mapping SourceColumn="NSI_ORGANIZATION_SHORT_NAME" DataSetColumn="NSI_ORGANIZATION_SHORT_NAME" />
              <Mapping SourceColumn="NSI_TYPE_OF_ACTIVITY_NAME" DataSetColumn="NSI_TYPE_OF_ACTIVITY_NAME" />
              <Mapping SourceColumn="DATE" DataSetColumn="DATE" />
              <Mapping SourceColumn="PROD_GROUPS" DataSetColumn="PROD_GROUPS" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_SEARCH_GUILD_BILL" DbObjectType="View" FillMethodModifier="Public" FillMethodName="FillByPID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByPID" GeneratorSourceName="FillByPID" GetMethodModifier="Public" GetMethodName="GetDataByPID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByPID" UserSourceName="FillByPID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT CONTRACT_NUM, DATE, ID, NSI_ORGANIZATION_SHORT_NAME, NSI_TYPE_OF_ACTIVITY_NAME, NUMBER, PID, PROD_GROUPS FROM VIEW_SEARCH_GUILD_BILL WHERE (PID = @PID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="PID" ColumnName="PID" DataSourceName="FSO2.dbo.VIEW_SEARCH_GUILD_BILL" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="VIEW_GUILD_BILL_ITEMTableAdapter" GeneratorDataComponentClassName="VIEW_GUILD_BILL_ITEMTableAdapter" Name="VIEW_GUILD_BILL_ITEM" UserDataComponentName="VIEW_GUILD_BILL_ITEMTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_GUILD_BILL_ITEM" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        PRODUCT_UNIT_NAME, NSI_PRODUCT_STATE_NAME, PRODUCT_UNIT_TYPE, PRODUCT_UNIT_COST, INVOICE_IN_SUM, NSI_CURRENCY_NAME, 
                         COST_PROTOCOL_NUMBER, CP_STAGE_ID, CP_STAGE_NUMBER, CP_STAGE_START_DATE, CP_STAGE_END_DATE, NSI_PRODUCT_STATE_ID, NSI_PRODUCT_ID,
                          GUILD_BILL_NUMBER, DIRECT_NUMBER, DIRECT_NUMBER_ID, GUILD_BILL_NUMBER_ID, VAT_INVOICE_ID, VAT_INVOICE_NUMBER, NSI_METER_NAME, 
                         PAY_PER, ID, VAT_INVOICE_DATE, INVOICE_OUT_NUMBER, CALENDAR_PLAN_NUMBER
FROM            VIEW_GUILD_BILL_ITEM</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="PRODUCT_UNIT_NAME" DataSetColumn="PRODUCT_UNIT_NAME" />
              <Mapping SourceColumn="NSI_PRODUCT_STATE_NAME" DataSetColumn="NSI_PRODUCT_STATE_NAME" />
              <Mapping SourceColumn="PRODUCT_UNIT_TYPE" DataSetColumn="PRODUCT_UNIT_TYPE" />
              <Mapping SourceColumn="PRODUCT_UNIT_COST" DataSetColumn="PRODUCT_UNIT_COST" />
              <Mapping SourceColumn="INVOICE_IN_SUM" DataSetColumn="INVOICE_IN_SUM" />
              <Mapping SourceColumn="NSI_CURRENCY_NAME" DataSetColumn="NSI_CURRENCY_NAME" />
              <Mapping SourceColumn="COST_PROTOCOL_NUMBER" DataSetColumn="COST_PROTOCOL_NUMBER" />
              <Mapping SourceColumn="CP_STAGE_ID" DataSetColumn="CP_STAGE_ID" />
              <Mapping SourceColumn="CP_STAGE_NUMBER" DataSetColumn="CP_STAGE_NUMBER" />
              <Mapping SourceColumn="CP_STAGE_START_DATE" DataSetColumn="CP_STAGE_START_DATE" />
              <Mapping SourceColumn="CP_STAGE_END_DATE" DataSetColumn="CP_STAGE_END_DATE" />
              <Mapping SourceColumn="NSI_PRODUCT_STATE_ID" DataSetColumn="NSI_PRODUCT_STATE_ID" />
              <Mapping SourceColumn="NSI_PRODUCT_ID" DataSetColumn="NSI_PRODUCT_ID" />
              <Mapping SourceColumn="GUILD_BILL_NUMBER" DataSetColumn="GUILD_BILL_NUMBER" />
              <Mapping SourceColumn="DIRECT_NUMBER" DataSetColumn="DIRECT_NUMBER" />
              <Mapping SourceColumn="DIRECT_NUMBER_ID" DataSetColumn="DIRECT_NUMBER_ID" />
              <Mapping SourceColumn="GUILD_BILL_NUMBER_ID" DataSetColumn="GUILD_BILL_NUMBER_ID" />
              <Mapping SourceColumn="VAT_INVOICE_ID" DataSetColumn="VAT_INVOICE_ID" />
              <Mapping SourceColumn="VAT_INVOICE_NUMBER" DataSetColumn="VAT_INVOICE_NUMBER" />
              <Mapping SourceColumn="NSI_METER_NAME" DataSetColumn="NSI_METER_NAME" />
              <Mapping SourceColumn="PAY_PER" DataSetColumn="PAY_PER" />
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="VAT_INVOICE_DATE" DataSetColumn="VAT_INVOICE_DATE" />
              <Mapping SourceColumn="INVOICE_OUT_NUMBER" DataSetColumn="INVOICE_OUT_NUMBER" />
              <Mapping SourceColumn="CALENDAR_PLAN_NUMBER" DataSetColumn="CALENDAR_PLAN_NUMBER" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_GUILD_BILL_ITEM" DbObjectType="View" FillMethodModifier="Public" FillMethodName="FillByGuildBillId" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByGuilBillId" GeneratorSourceName="FillByGuildBillId" GetMethodModifier="Public" GetMethodName="GetDataByGuilBillId" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByGuilBillId" UserSourceName="FillByGuildBillId">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT CALENDAR_PLAN_NUMBER, COST_PROTOCOL_NUMBER, CP_STAGE_END_DATE, CP_STAGE_ID, CP_STAGE_NUMBER, CP_STAGE_START_DATE, DIRECT_NUMBER, DIRECT_NUMBER_ID, GUILD_BILL_NUMBER, GUILD_BILL_NUMBER_ID, ID, INVOICE_IN_SUM, INVOICE_OUT_NUMBER, NSI_CURRENCY_NAME, NSI_METER_NAME, NSI_PRODUCT_ID, NSI_PRODUCT_STATE_ID, NSI_PRODUCT_STATE_NAME, PAY_PER, PRODUCT_UNIT_COST, PRODUCT_UNIT_NAME, PRODUCT_UNIT_TYPE, VAT_INVOICE_DATE, VAT_INVOICE_ID, VAT_INVOICE_NUMBER FROM VIEW_GUILD_BILL_ITEM WHERE (GUILD_BILL_NUMBER_ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="ID" ColumnName="GUILD_BILL_NUMBER_ID" DataSourceName="FSO2.dbo.VIEW_GUILD_BILL_ITEM" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="GUILD_BILL_NUMBER_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="VIEWS_SEARCH_VAT_INVOICETableAdapter" GeneratorDataComponentClassName="VIEWS_SEARCH_VAT_INVOICETableAdapter" Name="VIEWS_SEARCH_VAT_INVOICE" UserDataComponentName="VIEWS_SEARCH_VAT_INVOICETableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEWS_SEARCH_VAT_INVOICE" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        CONTRACT_NUM, NSI_ORGANIZATION_SHORT_NAME, NSI_TYPE_OF_ACTIVITY_NAME, PID, ID, NUMBER, DATE, SUM_RUB, NSI_ORGANIZATION_ID,PROD_GROUPS
FROM            VIEWS_SEARCH_VAT_INVOICE</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="CONTRACT_NUM" DataSetColumn="CONTRACT_NUM" />
              <Mapping SourceColumn="NSI_ORGANIZATION_SHORT_NAME" DataSetColumn="NSI_ORGANIZATION_SHORT_NAME" />
              <Mapping SourceColumn="NSI_TYPE_OF_ACTIVITY_NAME" DataSetColumn="NSI_TYPE_OF_ACTIVITY_NAME" />
              <Mapping SourceColumn="PID" DataSetColumn="PID" />
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="NUMBER" DataSetColumn="NUMBER" />
              <Mapping SourceColumn="DATE" DataSetColumn="DATE" />
              <Mapping SourceColumn="SUM_RUB" DataSetColumn="SUM_RUB" />
              <Mapping SourceColumn="NSI_ORGANIZATION_ID" DataSetColumn="NSI_ORGANIZATION_ID" />
              <Mapping SourceColumn="PROD_GROUPS" DataSetColumn="PROD_GROUPS" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEWS_SEARCH_VAT_INVOICE" DbObjectType="View" FillMethodModifier="Public" FillMethodName="FillByOrgId" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByOrgId" GeneratorSourceName="FillByOrgId" GetMethodModifier="Public" GetMethodName="GetDataByOrgId" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByOrgId" UserSourceName="FillByOrgId">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT CONTRACT_NUM, DATE, ID, NSI_ORGANIZATION_ID, NSI_ORGANIZATION_SHORT_NAME, NSI_TYPE_OF_ACTIVITY_NAME, NUMBER, PID, PROD_GROUPS, SUM_RUB FROM VIEWS_SEARCH_VAT_INVOICE WHERE (NSI_ORGANIZATION_ID = @OrgId)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="OrgId" ColumnName="NSI_ORGANIZATION_ID" DataSourceName="FSO2.dbo.VIEWS_SEARCH_VAT_INVOICE" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@OrgId" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="NSI_ORGANIZATION_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEWS_SEARCH_VAT_INVOICE" DbObjectType="View" FillMethodModifier="Public" FillMethodName="FillByPID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByPID" GeneratorSourceName="FillByPID" GetMethodModifier="Public" GetMethodName="GetDataByPID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByPID" UserSourceName="FillByPID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT CONTRACT_NUM, DATE, ID, NSI_ORGANIZATION_ID, NSI_ORGANIZATION_SHORT_NAME, NSI_TYPE_OF_ACTIVITY_NAME, NUMBER, PID, PROD_GROUPS, SUM_RUB FROM VIEWS_SEARCH_VAT_INVOICE WHERE (PID = @PID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="PID" ColumnName="PID" DataSourceName="FSO2.dbo.VIEWS_SEARCH_VAT_INVOICE" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="VIEW_VAT_IVOICE_ITEMTableAdapter" GeneratorDataComponentClassName="VIEW_VAT_IVOICE_ITEMTableAdapter" Name="VIEW_VAT_IVOICE_ITEM" UserDataComponentName="VIEW_VAT_IVOICE_ITEMTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_VAT_IVOICE_ITEM" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        PRODUCT_UNIT_NAME, NSI_PRODUCT_STATE_NAME, PRODUCT_UNIT_TYPE, PRODUCT_UNIT_COST, INVOICE_IN_SUM, NSI_CURRENCY_NAME, 
                         COST_PROTOCOL_NUMBER, CP_STAGE_ID, CP_STAGE_NUMBER, CP_STAGE_START_DATE, CP_STAGE_END_DATE, NSI_PRODUCT_STATE_ID, NSI_PRODUCT_ID,
                          GUILD_BILL_NUMBER, DIRECT_NUMBER, DIRECT_NUMBER_ID, GUILD_BILL_NUMBER_ID, VAT_INVOICE_ID, VAT_INVOICE_NUMBER, NSI_METER_NAME, 
                         PAY_PER, ID, VAT_INVOICE_DATE, NSI_PROD_GROUP_NAME, INVOICE_OUT_NUMBER, PROD_GROUP, N_DRAWING, CALENDAR_PLAN_NUMBER
FROM            VIEW_VAT_IVOICE_ITEM</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="PRODUCT_UNIT_NAME" DataSetColumn="PRODUCT_UNIT_NAME" />
              <Mapping SourceColumn="NSI_PRODUCT_STATE_NAME" DataSetColumn="NSI_PRODUCT_STATE_NAME" />
              <Mapping SourceColumn="PRODUCT_UNIT_TYPE" DataSetColumn="PRODUCT_UNIT_TYPE" />
              <Mapping SourceColumn="PRODUCT_UNIT_COST" DataSetColumn="PRODUCT_UNIT_COST" />
              <Mapping SourceColumn="INVOICE_IN_SUM" DataSetColumn="INVOICE_IN_SUM" />
              <Mapping SourceColumn="NSI_CURRENCY_NAME" DataSetColumn="NSI_CURRENCY_NAME" />
              <Mapping SourceColumn="COST_PROTOCOL_NUMBER" DataSetColumn="COST_PROTOCOL_NUMBER" />
              <Mapping SourceColumn="CP_STAGE_ID" DataSetColumn="CP_STAGE_ID" />
              <Mapping SourceColumn="CP_STAGE_NUMBER" DataSetColumn="CP_STAGE_NUMBER" />
              <Mapping SourceColumn="CP_STAGE_START_DATE" DataSetColumn="CP_STAGE_START_DATE" />
              <Mapping SourceColumn="CP_STAGE_END_DATE" DataSetColumn="CP_STAGE_END_DATE" />
              <Mapping SourceColumn="NSI_PRODUCT_STATE_ID" DataSetColumn="NSI_PRODUCT_STATE_ID" />
              <Mapping SourceColumn="NSI_PRODUCT_ID" DataSetColumn="NSI_PRODUCT_ID" />
              <Mapping SourceColumn="GUILD_BILL_NUMBER" DataSetColumn="GUILD_BILL_NUMBER" />
              <Mapping SourceColumn="DIRECT_NUMBER" DataSetColumn="DIRECT_NUMBER" />
              <Mapping SourceColumn="DIRECT_NUMBER_ID" DataSetColumn="DIRECT_NUMBER_ID" />
              <Mapping SourceColumn="GUILD_BILL_NUMBER_ID" DataSetColumn="GUILD_BILL_NUMBER_ID" />
              <Mapping SourceColumn="VAT_INVOICE_ID" DataSetColumn="VAT_INVOICE_ID" />
              <Mapping SourceColumn="VAT_INVOICE_NUMBER" DataSetColumn="VAT_INVOICE_NUMBER" />
              <Mapping SourceColumn="NSI_METER_NAME" DataSetColumn="NSI_METER_NAME" />
              <Mapping SourceColumn="PAY_PER" DataSetColumn="PAY_PER" />
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="VAT_INVOICE_DATE" DataSetColumn="VAT_INVOICE_DATE1" />
              <Mapping SourceColumn="INVOICE_OUT_NUMBER" DataSetColumn="INVOICE_OUT_NUMBER" />
              <Mapping SourceColumn="NSI_PROD_GROUP_NAME" DataSetColumn="NSI_PROD_GROUP_NAME" />
              <Mapping SourceColumn="PROD_GROUP" DataSetColumn="PROD_GROUP" />
              <Mapping SourceColumn="N_DRAWING" DataSetColumn="N_DRAWING" />
              <Mapping SourceColumn="CALENDAR_PLAN_NUMBER" DataSetColumn="CALENDAR_PLAN_NUMBER" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_VAT_IVOICE_ITEM" DbObjectType="View" FillMethodModifier="Public" FillMethodName="FillByID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByID" GeneratorSourceName="FillByID" GetMethodModifier="Public" GetMethodName="GetDataByID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByID" UserSourceName="FillByID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT CALENDAR_PLAN_NUMBER, COST_PROTOCOL_NUMBER, CP_STAGE_END_DATE, CP_STAGE_ID, CP_STAGE_NUMBER, CP_STAGE_START_DATE, DIRECT_NUMBER, DIRECT_NUMBER_ID, GUILD_BILL_NUMBER, GUILD_BILL_NUMBER_ID, ID, INVOICE_IN_SUM, INVOICE_OUT_NUMBER, NSI_CURRENCY_NAME, NSI_METER_NAME, NSI_PRODUCT_ID, NSI_PRODUCT_STATE_ID, NSI_PRODUCT_STATE_NAME, NSI_PROD_GROUP_NAME, N_DRAWING, PAY_PER, PRODUCT_UNIT_COST, PRODUCT_UNIT_NAME, PRODUCT_UNIT_TYPE, PROD_GROUP, VAT_INVOICE_DATE, VAT_INVOICE_ID, VAT_INVOICE_NUMBER FROM VIEW_VAT_IVOICE_ITEM WHERE (VAT_INVOICE_ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="ID" ColumnName="VAT_INVOICE_ID" DataSourceName="FSO2.dbo.VIEW_VAT_IVOICE_ITEM" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="VAT_INVOICE_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="VIEW_SEARCH_NSI_SERVICETableAdapter" GeneratorDataComponentClassName="VIEW_SEARCH_NSI_SERVICETableAdapter" Name="VIEW_SEARCH_NSI_SERVICE" UserDataComponentName="VIEW_SEARCH_NSI_SERVICETableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_SEARCH_NSI_SERVICE" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT ID, CODE, SHORT_NAME, FULL_NAME, NSI_METER_NAME, COUNT, NSI_METER_ID FROM dbo.VIEW_SEARCH_NSI_SERVICE</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="CODE" DataSetColumn="CODE" />
              <Mapping SourceColumn="SHORT_NAME" DataSetColumn="SHORT_NAME" />
              <Mapping SourceColumn="FULL_NAME" DataSetColumn="FULL_NAME" />
              <Mapping SourceColumn="NSI_METER_NAME" DataSetColumn="NSI_METER_NAME" />
              <Mapping SourceColumn="COUNT" DataSetColumn="COUNT" />
              <Mapping SourceColumn="NSI_METER_ID" DataSetColumn="NSI_METER_ID" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="INVOICE_OUT_SERVICE_ITEMTableAdapter" GeneratorDataComponentClassName="INVOICE_OUT_SERVICE_ITEMTableAdapter" Name="INVOICE_OUT_SERVICE_ITEM" UserDataComponentName="INVOICE_OUT_SERVICE_ITEMTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.INVOICE_OUT_SERVICE_ITEM" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [INVOICE_OUT_SERVICE_ITEM] WHERE (([ID] = @Original_ID) AND ([INVOICE_OUT_ID] = @Original_INVOICE_OUT_ID) AND ([NSI_SERVICE_ID] = @Original_NSI_SERVICE_ID) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)) AND ((@IsNull_PID = 1 AND [PID] IS NULL) OR ([PID] = @Original_PID)) AND ([COUNT] = @Original_COUNT))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_INVOICE_OUT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="INVOICE_OUT_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_NSI_SERVICE_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_SERVICE_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Original_COUNT" Precision="18" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="COUNT" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [INVOICE_OUT_SERVICE_ITEM] ([INVOICE_OUT_ID], [NSI_SERVICE_ID], [LAST_UPDATE], [LAST_UPDATE_USER], [PID], [COUNT]) VALUES (@INVOICE_OUT_ID, @NSI_SERVICE_ID, @LAST_UPDATE, @LAST_UPDATE_USER, @PID, @COUNT);
SELECT ID, INVOICE_OUT_ID, NSI_SERVICE_ID, LAST_UPDATE, LAST_UPDATE_USER, PID, COUNT FROM INVOICE_OUT_SERVICE_ITEM WHERE (ID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@INVOICE_OUT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="INVOICE_OUT_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@NSI_SERVICE_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_SERVICE_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@COUNT" Precision="18" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="COUNT" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT     ID, INVOICE_OUT_ID, NSI_SERVICE_ID, LAST_UPDATE, LAST_UPDATE_USER, PID, COUNT
FROM         INVOICE_OUT_SERVICE_ITEM</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [INVOICE_OUT_SERVICE_ITEM] SET [INVOICE_OUT_ID] = @INVOICE_OUT_ID, [NSI_SERVICE_ID] = @NSI_SERVICE_ID, [LAST_UPDATE] = @LAST_UPDATE, [LAST_UPDATE_USER] = @LAST_UPDATE_USER, [PID] = @PID, [COUNT] = @COUNT WHERE (([ID] = @Original_ID) AND ([INVOICE_OUT_ID] = @Original_INVOICE_OUT_ID) AND ([NSI_SERVICE_ID] = @Original_NSI_SERVICE_ID) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)) AND ((@IsNull_PID = 1 AND [PID] IS NULL) OR ([PID] = @Original_PID)) AND ([COUNT] = @Original_COUNT));
SELECT ID, INVOICE_OUT_ID, NSI_SERVICE_ID, LAST_UPDATE, LAST_UPDATE_USER, PID, COUNT FROM INVOICE_OUT_SERVICE_ITEM WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@INVOICE_OUT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="INVOICE_OUT_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@NSI_SERVICE_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_SERVICE_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@COUNT" Precision="18" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="COUNT" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_INVOICE_OUT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="INVOICE_OUT_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_NSI_SERVICE_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NSI_SERVICE_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Original_COUNT" Precision="18" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="COUNT" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="FSO2.dbo.INVOICE_OUT_SERVICE_ITEM" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="INVOICE_OUT_ID" DataSetColumn="INVOICE_OUT_ID" />
              <Mapping SourceColumn="NSI_SERVICE_ID" DataSetColumn="NSI_SERVICE_ID" />
              <Mapping SourceColumn="COUNT" DataSetColumn="COUNT" />
              <Mapping SourceColumn="LAST_UPDATE" DataSetColumn="LAST_UPDATE" />
              <Mapping SourceColumn="LAST_UPDATE_USER" DataSetColumn="LAST_UPDATE_USER" />
              <Mapping SourceColumn="PID" DataSetColumn="PID" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.INVOICE_OUT_SERVICE_ITEM" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByID" GeneratorSourceName="FillByID" GetMethodModifier="Public" GetMethodName="GetDataByID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByID" UserSourceName="FillByID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT COUNT, ID, INVOICE_OUT_ID, LAST_UPDATE, LAST_UPDATE_USER, NSI_SERVICE_ID, PID FROM INVOICE_OUT_SERVICE_ITEM WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="FSO2.dbo.INVOICE_OUT_SERVICE_ITEM" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="VIEW_PAY_IN_ON_SERVICETableAdapter" GeneratorDataComponentClassName="VIEW_PAY_IN_ON_SERVICETableAdapter" Name="VIEW_PAY_IN_ON_SERVICE" UserDataComponentName="VIEW_PAY_IN_ON_SERVICETableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_PAY_IN_ON_SERVICE" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        ID, PAYMENT_IN_ID, NSI_SERVICE_ID, NSI_SERVICE_NAME, NSI_METER_NAME, QAUNTITY
FROM            VIEW_PAY_IN_ON_SERVICE</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="PAYMENT_IN_ID" DataSetColumn="PAYMENT_IN_ID" />
              <Mapping SourceColumn="NSI_SERVICE_ID" DataSetColumn="NSI_SERVICE_ID" />
              <Mapping SourceColumn="NSI_SERVICE_NAME" DataSetColumn="NSI_SERVICE_NAME" />
              <Mapping SourceColumn="NSI_METER_NAME" DataSetColumn="NSI_METER_NAME" />
              <Mapping SourceColumn="QAUNTITY" DataSetColumn="QAUNTITY" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_PAY_IN_ON_SERVICE" DbObjectType="View" FillMethodModifier="Public" FillMethodName="FillByPayID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByPayID" GeneratorSourceName="FillByPayID" GetMethodModifier="Public" GetMethodName="GetDataByPayID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByPayID" UserSourceName="FillByPayID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT ID, NSI_METER_NAME, NSI_SERVICE_ID, NSI_SERVICE_NAME, PAYMENT_IN_ID, QAUNTITY FROM VIEW_PAY_IN_ON_SERVICE WHERE (PAYMENT_IN_ID = @PayID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="PayID" ColumnName="PAYMENT_IN_ID" DataSourceName="FSO2.dbo.VIEW_PAY_IN_ON_SERVICE" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@PayID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="PAYMENT_IN_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="VIEW_VAT_INV_ON_SERVICETableAdapter" GeneratorDataComponentClassName="VIEW_VAT_INV_ON_SERVICETableAdapter" Name="VIEW_VAT_INV_ON_SERVICE" UserDataComponentName="VIEW_VAT_INV_ON_SERVICETableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_VAT_INV_ON_SERVICE" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT ID, NSI_SERVICE_ID, VAT_INVOICE_ID, QUANTITY, NSI_SERVICE_NAME, NSI_METER_NAME FROM dbo.VIEW_VAT_INV_ON_SERVICE</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="NSI_SERVICE_ID" DataSetColumn="NSI_SERVICE_ID" />
              <Mapping SourceColumn="VAT_INVOICE_ID" DataSetColumn="VAT_INVOICE_ID" />
              <Mapping SourceColumn="QUANTITY" DataSetColumn="QUANTITY" />
              <Mapping SourceColumn="NSI_SERVICE_NAME" DataSetColumn="NSI_SERVICE_NAME" />
              <Mapping SourceColumn="NSI_METER_NAME" DataSetColumn="NSI_METER_NAME" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_VAT_INV_ON_SERVICE" DbObjectType="View" FillMethodModifier="Public" FillMethodName="FillByVatID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByVatID" GeneratorSourceName="FillByVatID" GetMethodModifier="Public" GetMethodName="GetDataByVatID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByVatID" UserSourceName="FillByVatID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT ID, NSI_SERVICE_ID, VAT_INVOICE_ID, QUANTITY, NSI_SERVICE_NAME, NSI_METER_NAME FROM dbo.VIEW_VAT_INV_ON_SERVICE
WHERE VAT_INVOICE_ID = @VatInvID</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="VatInvID" ColumnName="VAT_INVOICE_ID" DataSourceName="FSO2.dbo.VIEW_VAT_INV_ON_SERVICE" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@VatInvID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="VAT_INVOICE_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="VIEW_INV_OUT_SERVICE_ITEMTableAdapter" GeneratorDataComponentClassName="VIEW_INV_OUT_SERVICE_ITEMTableAdapter" Name="VIEW_INV_OUT_SERVICE_ITEM" UserDataComponentName="VIEW_INV_OUT_SERVICE_ITEMTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_INV_OUT_SERVICE_ITEM" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT     ID, NSI_SERVICE_NAME, INVOICE_OUT_ID, NSI_SERVICE_ID, NSI_METER_NAME, COUNT
FROM         VIEW_INV_OUT_SERVICE_ITEM</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="NSI_SERVICE_NAME" DataSetColumn="NSI_SERVICE_NAME" />
              <Mapping SourceColumn="INVOICE_OUT_ID" DataSetColumn="INVOICE_OUT_ID" />
              <Mapping SourceColumn="NSI_SERVICE_ID" DataSetColumn="NSI_SERVICE_ID" />
              <Mapping SourceColumn="COUNT" DataSetColumn="COUNT" />
              <Mapping SourceColumn="NSI_METER_NAME" DataSetColumn="NSI_METER_NAME" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.VIEW_INV_OUT_SERVICE_ITEM" DbObjectType="View" FillMethodModifier="Public" FillMethodName="FillByInvOutID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByInvOutID" GeneratorSourceName="FillByInvOutID" GetMethodModifier="Public" GetMethodName="GetDataByInvOutID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByInvOutID" UserSourceName="FillByInvOutID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT COUNT, ID, INVOICE_OUT_ID, NSI_METER_NAME, NSI_SERVICE_ID, NSI_SERVICE_NAME FROM VIEW_INV_OUT_SERVICE_ITEM WHERE (INVOICE_OUT_ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="INVOICE_OUT_ID" DataSourceName="FSO2.dbo.VIEW_INV_OUT_SERVICE_ITEM" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="INVOICE_OUT_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="USER_RIGHTSTableAdapter" GeneratorDataComponentClassName="USER_RIGHTSTableAdapter" Name="USER_RIGHTS" UserDataComponentName="USER_RIGHTSTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.USER_RIGHTS" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [USER_RIGHTS] ([LOGIN], [PAY_IN], [PAY_OUT], [INVOICE_IN], [INVOICE_OUT], [CALENDAR_PLAN], [COST_PROTOCOL], [GUILD_BILL], [VAT_INV], [CONTRACT], [ORGANIZATION]) VALUES (@LOGIN, @PAY_IN, @PAY_OUT, @INVOICE_IN, @INVOICE_OUT, @CALENDAR_PLAN, @COST_PROTOCOL, @GUILD_BILL, @VAT_INV, @CONTRACT, @ORGANIZATION)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LOGIN" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LOGIN" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@PAY_IN" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="PAY_IN" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@PAY_OUT" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="PAY_OUT" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@INVOICE_IN" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="INVOICE_IN" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@INVOICE_OUT" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="INVOICE_OUT" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@CALENDAR_PLAN" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="CALENDAR_PLAN" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@COST_PROTOCOL" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="COST_PROTOCOL" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@GUILD_BILL" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="GUILD_BILL" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@VAT_INV" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="VAT_INV" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@CONTRACT" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="CONTRACT" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@ORGANIZATION" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="ORGANIZATION" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        USER_RIGHTS.*
FROM            USER_RIGHTS</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="LOGIN" DataSetColumn="LOGIN" />
              <Mapping SourceColumn="PAY_IN" DataSetColumn="PAY_IN" />
              <Mapping SourceColumn="PAY_OUT" DataSetColumn="PAY_OUT" />
              <Mapping SourceColumn="INVOICE_IN" DataSetColumn="INVOICE_IN" />
              <Mapping SourceColumn="INVOICE_OUT" DataSetColumn="INVOICE_OUT" />
              <Mapping SourceColumn="CALENDAR_PLAN" DataSetColumn="CALENDAR_PLAN" />
              <Mapping SourceColumn="COST_PROTOCOL" DataSetColumn="COST_PROTOCOL" />
              <Mapping SourceColumn="GUILD_BILL" DataSetColumn="GUILD_BILL" />
              <Mapping SourceColumn="VAT_INV" DataSetColumn="VAT_INV" />
              <Mapping SourceColumn="CONTRACT" DataSetColumn="CONTRACT" />
              <Mapping SourceColumn="ORGANIZATION" DataSetColumn="ORGANIZATION" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="NSI_PRODUCT_GROUPTableAdapter" GeneratorDataComponentClassName="NSI_PRODUCT_GROUPTableAdapter" Name="NSI_PRODUCT_GROUP" UserDataComponentName="NSI_PRODUCT_GROUPTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.NSI_PRODUCT_GROUP" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [NSI_PRODUCT_GROUP] WHERE (([ID] = @Original_ID) AND ([NAME] = @Original_NAME) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NAME" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [NSI_PRODUCT_GROUP] ([NAME], [LAST_UPDATE], [LAST_UPDATE_USER]) VALUES (@NAME, @LAST_UPDATE, @LAST_UPDATE_USER);
SELECT ID, NAME, LAST_UPDATE, LAST_UPDATE_USER FROM NSI_PRODUCT_GROUP WHERE (ID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NAME" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        NSI_PRODUCT_GROUP.*
FROM            NSI_PRODUCT_GROUP</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [NSI_PRODUCT_GROUP] SET [NAME] = @NAME, [LAST_UPDATE] = @LAST_UPDATE, [LAST_UPDATE_USER] = @LAST_UPDATE_USER WHERE (([ID] = @Original_ID) AND ([NAME] = @Original_NAME) AND ((@IsNull_LAST_UPDATE = 1 AND [LAST_UPDATE] IS NULL) OR ([LAST_UPDATE] = @Original_LAST_UPDATE)) AND ((@IsNull_LAST_UPDATE_USER = 1 AND [LAST_UPDATE_USER] IS NULL) OR ([LAST_UPDATE_USER] = @Original_LAST_UPDATE_USER)));
SELECT ID, NAME, LAST_UPDATE, LAST_UPDATE_USER FROM NSI_PRODUCT_GROUP WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NAME" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NAME" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_LAST_UPDATE" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="LAST_UPDATE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LAST_UPDATE_USER" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_LAST_UPDATE_USER" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="LAST_UPDATE_USER" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="FSO2.dbo.NSI_PRODUCT_GROUP" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="NAME" DataSetColumn="NAME" />
              <Mapping SourceColumn="LAST_UPDATE" DataSetColumn="LAST_UPDATE" />
              <Mapping SourceColumn="LAST_UPDATE_USER" DataSetColumn="LAST_UPDATE_USER" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FSO2ConnectionString (Settings)" DbObjectName="FSO2.dbo.HasLinkProductGroup" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="HasLinkProductGroup" Modifier="Public" Name="HasLinkProductGroup" QueryType="Scalar" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="HasLinkProductGroup">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.HasLinkProductGroup</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="DataSetFSO" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="DataSetFSO" msprop:Generator_UserDSName="DataSetFSO">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="CALENDAR_PLAN" msprop:Generator_UserTableName="CALENDAR_PLAN" msprop:Generator_RowEvArgName="CALENDAR_PLANRowChangeEvent" msprop:Generator_TableVarName="tableCALENDAR_PLAN" msprop:Generator_TablePropName="CALENDAR_PLAN" msprop:Generator_RowDeletingName="CALENDAR_PLANRowDeleting" msprop:Generator_RowChangingName="CALENDAR_PLANRowChanging" msprop:Generator_RowDeletedName="CALENDAR_PLANRowDeleted" msprop:Generator_RowEvHandlerName="CALENDAR_PLANRowChangeEventHandler" msprop:Generator_TableClassName="CALENDAR_PLANDataTable" msprop:Generator_RowChangedName="CALENDAR_PLANRowChanged" msprop:Generator_RowClassName="CALENDAR_PLANRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="NUMBER" msprop:Generator_ColumnVarNameInTable="columnNUMBER" msprop:Generator_ColumnPropNameInRow="NUMBER" msprop:Generator_ColumnPropNameInTable="NUMBERColumn" msprop:Generator_UserColumnName="NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="START_DATE" msprop:Generator_ColumnVarNameInTable="columnSTART_DATE" msprop:Generator_ColumnPropNameInRow="START_DATE" msprop:Generator_ColumnPropNameInTable="START_DATEColumn" msprop:Generator_UserColumnName="START_DATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="END_DATE" msprop:Generator_ColumnVarNameInTable="columnEND_DATE" msprop:Generator_ColumnPropNameInRow="END_DATE" msprop:Generator_ColumnPropNameInTable="END_DATEColumn" msprop:Generator_UserColumnName="END_DATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="CONTRACT_ID" msprop:Generator_ColumnVarNameInTable="columnCONTRACT_ID" msprop:Generator_ColumnPropNameInRow="CONTRACT_ID" msprop:Generator_ColumnPropNameInTable="CONTRACT_IDColumn" msprop:Generator_UserColumnName="CONTRACT_ID" type="xs:int" minOccurs="0" />
              <xs:element name="LAST_UPDATE" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE" msprop:Generator_ColumnPropNameInTable="LAST_UPDATEColumn" msprop:Generator_UserColumnName="LAST_UPDATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="LAST_UPDATE_USER" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE_USER" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE_USER" msprop:Generator_ColumnPropNameInTable="LAST_UPDATE_USERColumn" msprop:Generator_UserColumnName="LAST_UPDATE_USER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PID" msprop:Generator_ColumnVarNameInTable="columnPID" msprop:Generator_ColumnPropNameInRow="PID" msprop:Generator_ColumnPropNameInTable="PIDColumn" msprop:Generator_UserColumnName="PID" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="CONTRACT" msprop:Generator_UserTableName="CONTRACT" msprop:Generator_RowEvArgName="CONTRACTRowChangeEvent" msprop:Generator_TableVarName="tableCONTRACT" msprop:Generator_TablePropName="CONTRACT" msprop:Generator_RowDeletingName="CONTRACTRowDeleting" msprop:Generator_RowChangingName="CONTRACTRowChanging" msprop:Generator_RowDeletedName="CONTRACTRowDeleted" msprop:Generator_RowEvHandlerName="CONTRACTRowChangeEventHandler" msprop:Generator_TableClassName="CONTRACTDataTable" msprop:Generator_RowChangedName="CONTRACTRowChanged" msprop:Generator_RowClassName="CONTRACTRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="NUMBER" msprop:Generator_ColumnVarNameInTable="columnNUMBER" msprop:Generator_ColumnPropNameInRow="NUMBER" msprop:Generator_ColumnPropNameInTable="NUMBERColumn" msprop:Generator_UserColumnName="NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="START_DATE" msprop:Generator_ColumnVarNameInTable="columnSTART_DATE" msprop:Generator_ColumnPropNameInRow="START_DATE" msprop:Generator_ColumnPropNameInTable="START_DATEColumn" msprop:Generator_UserColumnName="START_DATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="END_DATE" msprop:Generator_ColumnVarNameInTable="columnEND_DATE" msprop:Generator_ColumnPropNameInRow="END_DATE" msprop:Generator_ColumnPropNameInTable="END_DATEColumn" msprop:Generator_UserColumnName="END_DATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="NSI_ORGANIZATION_ID" msprop:nullValue="-1" msprop:Generator_ColumnPropNameInRow="NSI_ORGANIZATION_ID" msprop:Generator_ColumnVarNameInTable="columnNSI_ORGANIZATION_ID" msprop:Generator_ColumnPropNameInTable="NSI_ORGANIZATION_IDColumn" msprop:Generator_UserColumnName="NSI_ORGANIZATION_ID" type="xs:int" minOccurs="0" />
              <xs:element name="NSI_TYPE_OF_ACTIVITY_ID" msprop:nullValue="-1" msprop:Generator_ColumnPropNameInRow="NSI_TYPE_OF_ACTIVITY_ID" msprop:Generator_ColumnVarNameInTable="columnNSI_TYPE_OF_ACTIVITY_ID" msprop:Generator_ColumnPropNameInTable="NSI_TYPE_OF_ACTIVITY_IDColumn" msprop:Generator_UserColumnName="NSI_TYPE_OF_ACTIVITY_ID" type="xs:int" minOccurs="0" />
              <xs:element name="TYPE_WORK" msprop:Generator_ColumnVarNameInTable="columnTYPE_WORK" msprop:Generator_ColumnPropNameInRow="TYPE_WORK" msprop:Generator_ColumnPropNameInTable="TYPE_WORKColumn" msprop:Generator_UserColumnName="TYPE_WORK" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="TYPE_DOC" msprop:Generator_ColumnVarNameInTable="columnTYPE_DOC" msprop:Generator_ColumnPropNameInRow="TYPE_DOC" msprop:Generator_ColumnPropNameInTable="TYPE_DOCColumn" msprop:Generator_UserColumnName="TYPE_DOC" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PARENT_CONTRACT_ID" msprop:Generator_ColumnVarNameInTable="columnPARENT_CONTRACT_ID" msprop:Generator_ColumnPropNameInRow="PARENT_CONTRACT_ID" msprop:Generator_ColumnPropNameInTable="PARENT_CONTRACT_IDColumn" msprop:Generator_UserColumnName="PARENT_CONTRACT_ID" type="xs:int" minOccurs="0" />
              <xs:element name="DESCRIPTION" msprop:Generator_ColumnVarNameInTable="columnDESCRIPTION" msprop:Generator_ColumnPropNameInRow="DESCRIPTION" msprop:Generator_ColumnPropNameInTable="DESCRIPTIONColumn" msprop:Generator_UserColumnName="DESCRIPTION" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2147483647" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="LAST_UPDATE" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE" msprop:Generator_ColumnPropNameInTable="LAST_UPDATEColumn" msprop:Generator_UserColumnName="LAST_UPDATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="LAST_UPDATE_USER" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE_USER" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE_USER" msprop:Generator_ColumnPropNameInTable="LAST_UPDATE_USERColumn" msprop:Generator_UserColumnName="LAST_UPDATE_USER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PID" msprop:Generator_ColumnVarNameInTable="columnPID" msprop:Generator_ColumnPropNameInRow="PID" msprop:Generator_ColumnPropNameInTable="PIDColumn" msprop:Generator_UserColumnName="PID" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="COST_PROTOCOL" msprop:Generator_UserTableName="COST_PROTOCOL" msprop:Generator_RowEvArgName="COST_PROTOCOLRowChangeEvent" msprop:Generator_TableVarName="tableCOST_PROTOCOL" msprop:Generator_TablePropName="COST_PROTOCOL" msprop:Generator_RowDeletingName="COST_PROTOCOLRowDeleting" msprop:Generator_RowChangingName="COST_PROTOCOLRowChanging" msprop:Generator_RowDeletedName="COST_PROTOCOLRowDeleted" msprop:Generator_RowEvHandlerName="COST_PROTOCOLRowChangeEventHandler" msprop:Generator_TableClassName="COST_PROTOCOLDataTable" msprop:Generator_RowChangedName="COST_PROTOCOLRowChanged" msprop:Generator_RowClassName="COST_PROTOCOLRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="NUMBER" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="NUMBER" msprop:Generator_ColumnVarNameInTable="columnNUMBER" msprop:Generator_ColumnPropNameInTable="NUMBERColumn" msprop:Generator_UserColumnName="NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="CONTRACT_ID" msprop:Generator_ColumnVarNameInTable="columnCONTRACT_ID" msprop:Generator_ColumnPropNameInRow="CONTRACT_ID" msprop:Generator_ColumnPropNameInTable="CONTRACT_IDColumn" msprop:Generator_UserColumnName="CONTRACT_ID" type="xs:int" minOccurs="0" />
              <xs:element name="START_DATE" msprop:Generator_ColumnVarNameInTable="columnSTART_DATE" msprop:Generator_ColumnPropNameInRow="START_DATE" msprop:Generator_ColumnPropNameInTable="START_DATEColumn" msprop:Generator_UserColumnName="START_DATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="END_DATE" msprop:Generator_ColumnVarNameInTable="columnEND_DATE" msprop:Generator_ColumnPropNameInRow="END_DATE" msprop:Generator_ColumnPropNameInTable="END_DATEColumn" msprop:Generator_UserColumnName="END_DATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="NSI_CURRENCY_ID" msprop:Generator_ColumnVarNameInTable="columnNSI_CURRENCY_ID" msprop:Generator_ColumnPropNameInRow="NSI_CURRENCY_ID" msprop:Generator_ColumnPropNameInTable="NSI_CURRENCY_IDColumn" msprop:Generator_UserColumnName="NSI_CURRENCY_ID" type="xs:int" minOccurs="0" />
              <xs:element name="IS_AGREED" msprop:Generator_ColumnVarNameInTable="columnIS_AGREED" msprop:Generator_ColumnPropNameInRow="IS_AGREED" msprop:Generator_ColumnPropNameInTable="IS_AGREEDColumn" msprop:Generator_UserColumnName="IS_AGREED" type="xs:boolean" minOccurs="0" />
              <xs:element name="LAST_UPDATE" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE" msprop:Generator_ColumnPropNameInTable="LAST_UPDATEColumn" msprop:Generator_UserColumnName="LAST_UPDATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="LAST_UPDATE_USER" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE_USER" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE_USER" msprop:Generator_ColumnPropNameInTable="LAST_UPDATE_USERColumn" msprop:Generator_UserColumnName="LAST_UPDATE_USER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PID" msprop:Generator_ColumnVarNameInTable="columnPID" msprop:Generator_ColumnPropNameInRow="PID" msprop:Generator_ColumnPropNameInTable="PIDColumn" msprop:Generator_UserColumnName="PID" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="CP_STAGE" msprop:Generator_UserTableName="CP_STAGE" msprop:Generator_RowEvArgName="CP_STAGERowChangeEvent" msprop:Generator_TableVarName="tableCP_STAGE" msprop:Generator_TablePropName="CP_STAGE" msprop:Generator_RowDeletingName="CP_STAGERowDeleting" msprop:Generator_RowChangingName="CP_STAGERowChanging" msprop:Generator_RowDeletedName="CP_STAGERowDeleted" msprop:Generator_RowEvHandlerName="CP_STAGERowChangeEventHandler" msprop:Generator_TableClassName="CP_STAGEDataTable" msprop:Generator_RowChangedName="CP_STAGERowChanged" msprop:Generator_RowClassName="CP_STAGERow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="NUMBER" msprop:Generator_ColumnVarNameInTable="columnNUMBER" msprop:Generator_ColumnPropNameInRow="NUMBER" msprop:Generator_ColumnPropNameInTable="NUMBERColumn" msprop:Generator_UserColumnName="NUMBER">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NAME" msprop:Generator_ColumnVarNameInTable="columnNAME" msprop:Generator_ColumnPropNameInRow="NAME" msprop:Generator_ColumnPropNameInTable="NAMEColumn" msprop:Generator_UserColumnName="NAME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="START_DATE" msprop:Generator_ColumnVarNameInTable="columnSTART_DATE" msprop:Generator_ColumnPropNameInRow="START_DATE" msprop:Generator_ColumnPropNameInTable="START_DATEColumn" msprop:Generator_UserColumnName="START_DATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="END_DATE" msprop:Generator_ColumnVarNameInTable="columnEND_DATE" msprop:Generator_ColumnPropNameInRow="END_DATE" msprop:Generator_ColumnPropNameInTable="END_DATEColumn" msprop:Generator_UserColumnName="END_DATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="CALENDAR_PLAN_ID" msprop:Generator_ColumnVarNameInTable="columnCALENDAR_PLAN_ID" msprop:Generator_ColumnPropNameInRow="CALENDAR_PLAN_ID" msprop:Generator_ColumnPropNameInTable="CALENDAR_PLAN_IDColumn" msprop:Generator_UserColumnName="CALENDAR_PLAN_ID" type="xs:int" minOccurs="0" />
              <xs:element name="PARENT_STAGE_ID" msprop:nullValue="-1" msprop:Generator_ColumnPropNameInRow="PARENT_STAGE_ID" msprop:Generator_ColumnVarNameInTable="columnPARENT_STAGE_ID" msprop:Generator_ColumnPropNameInTable="PARENT_STAGE_IDColumn" msprop:Generator_UserColumnName="PARENT_STAGE_ID" type="xs:int" minOccurs="0" />
              <xs:element name="LAST_UPDATE" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE" msprop:Generator_ColumnPropNameInTable="LAST_UPDATEColumn" msprop:Generator_UserColumnName="LAST_UPDATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="LAST_UPDATE_USER" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE_USER" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE_USER" msprop:Generator_ColumnPropNameInTable="LAST_UPDATE_USERColumn" msprop:Generator_UserColumnName="LAST_UPDATE_USER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PID" msprop:Generator_ColumnVarNameInTable="columnPID" msprop:Generator_ColumnPropNameInRow="PID" msprop:Generator_ColumnPropNameInTable="PIDColumn" msprop:Generator_UserColumnName="PID" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="INVOICE_IN" msprop:Generator_UserTableName="INVOICE_IN" msprop:Generator_RowEvArgName="INVOICE_INRowChangeEvent" msprop:Generator_TableVarName="tableINVOICE_IN" msprop:Generator_TablePropName="INVOICE_IN" msprop:Generator_RowDeletingName="INVOICE_INRowDeleting" msprop:Generator_RowChangingName="INVOICE_INRowChanging" msprop:Generator_RowDeletedName="INVOICE_INRowDeleted" msprop:Generator_RowEvHandlerName="INVOICE_INRowChangeEventHandler" msprop:Generator_TableClassName="INVOICE_INDataTable" msprop:Generator_RowChangedName="INVOICE_INRowChanged" msprop:Generator_RowClassName="INVOICE_INRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="NUMBER" msprop:Generator_ColumnVarNameInTable="columnNUMBER" msprop:Generator_ColumnPropNameInRow="NUMBER" msprop:Generator_ColumnPropNameInTable="NUMBERColumn" msprop:Generator_UserColumnName="NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="REG_NUMBER" msprop:Generator_ColumnVarNameInTable="columnREG_NUMBER" msprop:Generator_ColumnPropNameInRow="REG_NUMBER" msprop:Generator_ColumnPropNameInTable="REG_NUMBERColumn" msprop:Generator_UserColumnName="REG_NUMBER" type="xs:int" minOccurs="0" />
              <xs:element name="AREAL" msprop:nullValue="_throw" msprop:Generator_ColumnPropNameInRow="AREAL" msprop:Generator_ColumnVarNameInTable="columnAREAL" msprop:Generator_ColumnPropNameInTable="AREALColumn" msprop:Generator_UserColumnName="AREAL" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NSI_CONTRACT_ID" msprop:Generator_ColumnVarNameInTable="columnNSI_CONTRACT_ID" msprop:Generator_ColumnPropNameInRow="NSI_CONTRACT_ID" msprop:Generator_ColumnPropNameInTable="NSI_CONTRACT_IDColumn" msprop:Generator_UserColumnName="NSI_CONTRACT_ID" type="xs:int" minOccurs="0" />
              <xs:element name="DATE" msprop:Generator_ColumnVarNameInTable="columnDATE" msprop:Generator_ColumnPropNameInRow="DATE" msprop:Generator_ColumnPropNameInTable="DATEColumn" msprop:Generator_UserColumnName="DATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="SUM" msprop:nullValue="0" msprop:Generator_ColumnPropNameInRow="SUM" msprop:Generator_ColumnVarNameInTable="columnSUM" msprop:Generator_ColumnPropNameInTable="SUMColumn" msprop:Generator_UserColumnName="SUM" type="xs:decimal" default="0" minOccurs="0" />
              <xs:element name="NSI_CURRENCY_ID" msprop:Generator_ColumnVarNameInTable="columnNSI_CURRENCY_ID" msprop:Generator_ColumnPropNameInRow="NSI_CURRENCY_ID" msprop:Generator_ColumnPropNameInTable="NSI_CURRENCY_IDColumn" msprop:Generator_UserColumnName="NSI_CURRENCY_ID" type="xs:int" minOccurs="0" />
              <xs:element name="NSI_TYPE_OF_ACTIVITY_ID" msprop:Generator_ColumnVarNameInTable="columnNSI_TYPE_OF_ACTIVITY_ID" msprop:Generator_ColumnPropNameInRow="NSI_TYPE_OF_ACTIVITY_ID" msprop:Generator_ColumnPropNameInTable="NSI_TYPE_OF_ACTIVITY_IDColumn" msprop:Generator_UserColumnName="NSI_TYPE_OF_ACTIVITY_ID" type="xs:int" minOccurs="0" />
              <xs:element name="N_FOLDER" msprop:Generator_ColumnVarNameInTable="columnN_FOLDER" msprop:Generator_ColumnPropNameInRow="N_FOLDER" msprop:Generator_ColumnPropNameInTable="N_FOLDERColumn" msprop:Generator_UserColumnName="N_FOLDER" type="xs:short" minOccurs="0" />
              <xs:element name="NSI_FINANCE_RESOURCE_ID" msprop:Generator_ColumnVarNameInTable="columnNSI_FINANCE_RESOURCE_ID" msprop:Generator_ColumnPropNameInRow="NSI_FINANCE_RESOURCE_ID" msprop:Generator_ColumnPropNameInTable="NSI_FINANCE_RESOURCE_IDColumn" msprop:Generator_UserColumnName="NSI_FINANCE_RESOURCE_ID" type="xs:int" minOccurs="0" />
              <xs:element name="NSI_EXPENSE_ITEM_ID" msprop:Generator_ColumnVarNameInTable="columnNSI_EXPENSE_ITEM_ID" msprop:Generator_ColumnPropNameInRow="NSI_EXPENSE_ITEM_ID" msprop:Generator_ColumnPropNameInTable="NSI_EXPENSE_ITEM_IDColumn" msprop:Generator_UserColumnName="NSI_EXPENSE_ITEM_ID" type="xs:int" minOccurs="0" />
              <xs:element name="CITY" msprop:Generator_ColumnVarNameInTable="columnCITY" msprop:Generator_ColumnPropNameInRow="CITY" msprop:Generator_ColumnPropNameInTable="CITYColumn" msprop:Generator_UserColumnName="CITY" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="CONTRACT_NUMBER" msprop:Generator_ColumnVarNameInTable="columnCONTRACT_NUMBER" msprop:Generator_ColumnPropNameInRow="CONTRACT_NUMBER" msprop:Generator_ColumnPropNameInTable="CONTRACT_NUMBERColumn" msprop:Generator_UserColumnName="CONTRACT_NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="CONTRACT_DATE" msprop:Generator_ColumnVarNameInTable="columnCONTRACT_DATE" msprop:Generator_ColumnPropNameInRow="CONTRACT_DATE" msprop:Generator_ColumnPropNameInTable="CONTRACT_DATEColumn" msprop:Generator_UserColumnName="CONTRACT_DATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="STATE" msprop:Generator_ColumnVarNameInTable="columnSTATE" msprop:Generator_ColumnPropNameInRow="STATE" msprop:Generator_ColumnPropNameInTable="STATEColumn" msprop:Generator_UserColumnName="STATE" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="DESCRIPTION" msprop:Generator_ColumnVarNameInTable="columnDESCRIPTION" msprop:Generator_ColumnPropNameInRow="DESCRIPTION" msprop:Generator_ColumnPropNameInTable="DESCRIPTIONColumn" msprop:Generator_UserColumnName="DESCRIPTION" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2147483647" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="LAST_UPDATE" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE" msprop:Generator_ColumnPropNameInTable="LAST_UPDATEColumn" msprop:Generator_UserColumnName="LAST_UPDATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="LAST_UPDATE_USER" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE_USER" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE_USER" msprop:Generator_ColumnPropNameInTable="LAST_UPDATE_USERColumn" msprop:Generator_UserColumnName="LAST_UPDATE_USER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NSI_PAY_DIRECT_ID" msprop:Generator_ColumnVarNameInTable="columnNSI_PAY_DIRECT_ID" msprop:Generator_ColumnPropNameInRow="NSI_PAY_DIRECT_ID" msprop:Generator_ColumnPropNameInTable="NSI_PAY_DIRECT_IDColumn" msprop:Generator_UserColumnName="NSI_PAY_DIRECT_ID" type="xs:int" minOccurs="0" />
              <xs:element name="PLAN_PAY_DATE" msprop:Generator_ColumnVarNameInTable="columnPLAN_PAY_DATE" msprop:Generator_ColumnPropNameInRow="PLAN_PAY_DATE" msprop:Generator_ColumnPropNameInTable="PLAN_PAY_DATEColumn" msprop:Generator_UserColumnName="PLAN_PAY_DATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="NSI_ORG_NAME" msprop:Generator_ColumnVarNameInTable="columnNSI_ORG_NAME" msprop:Generator_ColumnPropNameInRow="NSI_ORG_NAME" msprop:Generator_ColumnPropNameInTable="NSI_ORG_NAMEColumn" msprop:Generator_UserColumnName="NSI_ORG_NAME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NSI_ORGANIZATION_ID" msprop:Generator_ColumnVarNameInTable="columnNSI_ORGANIZATION_ID" msprop:Generator_ColumnPropNameInRow="NSI_ORGANIZATION_ID" msprop:Generator_ColumnPropNameInTable="NSI_ORGANIZATION_IDColumn" msprop:Generator_UserColumnName="NSI_ORGANIZATION_ID" type="xs:int" minOccurs="0" />
              <xs:element name="CONTRACT_C_NUMBER" msprop:Generator_ColumnVarNameInTable="columnCONTRACT_C_NUMBER" msprop:Generator_ColumnPropNameInRow="CONTRACT_C_NUMBER" msprop:Generator_ColumnPropNameInTable="CONTRACT_C_NUMBERColumn" msprop:Generator_UserColumnName="CONTRACT_C_NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="CONTRACT_C_START_DAY" msprop:Generator_ColumnVarNameInTable="columnCONTRACT_C_START_DAY" msprop:Generator_ColumnPropNameInRow="CONTRACT_C_START_DAY" msprop:Generator_ColumnPropNameInTable="CONTRACT_C_START_DAYColumn" msprop:Generator_UserColumnName="CONTRACT_C_START_DAY" type="xs:dateTime" minOccurs="0" />
              <xs:element name="PID" msprop:Generator_ColumnVarNameInTable="columnPID" msprop:Generator_ColumnPropNameInRow="PID" msprop:Generator_ColumnPropNameInTable="PIDColumn" msprop:Generator_UserColumnName="PID" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="INVOICE_IN_ITEM" msprop:Generator_UserTableName="INVOICE_IN_ITEM" msprop:Generator_RowEvArgName="INVOICE_IN_ITEMRowChangeEvent" msprop:Generator_TableVarName="tableINVOICE_IN_ITEM" msprop:Generator_TablePropName="INVOICE_IN_ITEM" msprop:Generator_RowDeletingName="INVOICE_IN_ITEMRowDeleting" msprop:Generator_RowChangingName="INVOICE_IN_ITEMRowChanging" msprop:Generator_RowDeletedName="INVOICE_IN_ITEMRowDeleted" msprop:Generator_RowEvHandlerName="INVOICE_IN_ITEMRowChangeEventHandler" msprop:Generator_TableClassName="INVOICE_IN_ITEMDataTable" msprop:Generator_RowChangedName="INVOICE_IN_ITEMRowChanged" msprop:Generator_RowClassName="INVOICE_IN_ITEMRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="INVOICE_IN_ID" msprop:Generator_ColumnVarNameInTable="columnINVOICE_IN_ID" msprop:Generator_ColumnPropNameInRow="INVOICE_IN_ID" msprop:Generator_ColumnPropNameInTable="INVOICE_IN_IDColumn" msprop:Generator_UserColumnName="INVOICE_IN_ID" type="xs:int" minOccurs="0" />
              <xs:element name="NSI_MATERIAL_ID" msprop:Generator_ColumnVarNameInTable="columnNSI_MATERIAL_ID" msprop:Generator_ColumnPropNameInRow="NSI_MATERIAL_ID" msprop:Generator_ColumnPropNameInTable="NSI_MATERIAL_IDColumn" msprop:Generator_UserColumnName="NSI_MATERIAL_ID" type="xs:int" minOccurs="0" />
              <xs:element name="COMMENTS" msprop:Generator_ColumnVarNameInTable="columnCOMMENTS" msprop:Generator_ColumnPropNameInRow="COMMENTS" msprop:Generator_ColumnPropNameInTable="COMMENTSColumn" msprop:Generator_UserColumnName="COMMENTS" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="128" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="QUANTITY" msprop:Generator_ColumnVarNameInTable="columnQUANTITY" msprop:Generator_ColumnPropNameInRow="QUANTITY" msprop:Generator_ColumnPropNameInTable="QUANTITYColumn" msprop:Generator_UserColumnName="QUANTITY" type="xs:int" minOccurs="0" />
              <xs:element name="LAST_UPDATE" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE" msprop:Generator_ColumnPropNameInTable="LAST_UPDATEColumn" msprop:Generator_UserColumnName="LAST_UPDATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="LAST_UPDATE_USER" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE_USER" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE_USER" msprop:Generator_ColumnPropNameInTable="LAST_UPDATE_USERColumn" msprop:Generator_UserColumnName="LAST_UPDATE_USER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NSI_MATERIAL_NAME" msprop:Generator_ColumnVarNameInTable="columnNSI_MATERIAL_NAME" msprop:Generator_ColumnPropNameInRow="NSI_MATERIAL_NAME" msprop:Generator_ColumnPropNameInTable="NSI_MATERIAL_NAMEColumn" msprop:Generator_UserColumnName="NSI_MATERIAL_NAME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NSI_METER_NAME" msprop:Generator_ColumnVarNameInTable="columnNSI_METER_NAME" msprop:Generator_ColumnPropNameInRow="NSI_METER_NAME" msprop:Generator_ColumnPropNameInTable="NSI_METER_NAMEColumn" msprop:Generator_UserColumnName="NSI_METER_NAME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PID" msprop:Generator_ColumnVarNameInTable="columnPID" msprop:Generator_ColumnPropNameInRow="PID" msprop:Generator_ColumnPropNameInTable="PIDColumn" msprop:Generator_UserColumnName="PID" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="INVOICE_OUT" msprop:Generator_UserTableName="INVOICE_OUT" msprop:Generator_RowEvArgName="INVOICE_OUTRowChangeEvent" msprop:Generator_TableVarName="tableINVOICE_OUT" msprop:Generator_TablePropName="INVOICE_OUT" msprop:Generator_RowDeletingName="INVOICE_OUTRowDeleting" msprop:Generator_RowChangingName="INVOICE_OUTRowChanging" msprop:Generator_RowDeletedName="INVOICE_OUTRowDeleted" msprop:Generator_RowEvHandlerName="INVOICE_OUTRowChangeEventHandler" msprop:Generator_TableClassName="INVOICE_OUTDataTable" msprop:Generator_RowChangedName="INVOICE_OUTRowChanged" msprop:Generator_RowClassName="INVOICE_OUTRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="NUMBER" msprop:Generator_ColumnVarNameInTable="columnNUMBER" msprop:Generator_ColumnPropNameInRow="NUMBER" msprop:Generator_ColumnPropNameInTable="NUMBERColumn" msprop:Generator_UserColumnName="NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="DATE" msprop:Generator_ColumnVarNameInTable="columnDATE" msprop:Generator_ColumnPropNameInRow="DATE" msprop:Generator_ColumnPropNameInTable="DATEColumn" msprop:Generator_UserColumnName="DATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="SUM" msprop:nullValue="0" msprop:Generator_ColumnPropNameInRow="SUM" msprop:Generator_ColumnVarNameInTable="columnSUM" msprop:Generator_ColumnPropNameInTable="SUMColumn" msprop:Generator_UserColumnName="SUM" type="xs:decimal" default="0" minOccurs="0" />
              <xs:element name="STATE" msprop:Generator_ColumnVarNameInTable="columnSTATE" msprop:Generator_ColumnPropNameInRow="STATE" msprop:Generator_ColumnPropNameInTable="STATEColumn" msprop:Generator_UserColumnName="STATE" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="DESCRIPTION" msprop:Generator_ColumnVarNameInTable="columnDESCRIPTION" msprop:Generator_ColumnPropNameInRow="DESCRIPTION" msprop:Generator_ColumnPropNameInTable="DESCRIPTIONColumn" msprop:Generator_UserColumnName="DESCRIPTION" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2147483647" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="LAST_UPDATE" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE" msprop:Generator_ColumnPropNameInTable="LAST_UPDATEColumn" msprop:Generator_UserColumnName="LAST_UPDATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="LAST_UPDATE_USER" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE_USER" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE_USER" msprop:Generator_ColumnPropNameInTable="LAST_UPDATE_USERColumn" msprop:Generator_UserColumnName="LAST_UPDATE_USER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PID" msprop:Generator_ColumnVarNameInTable="columnPID" msprop:Generator_ColumnPropNameInRow="PID" msprop:Generator_ColumnPropNameInTable="PIDColumn" msprop:Generator_UserColumnName="PID" type="xs:int" minOccurs="0" />
              <xs:element name="NSI_CURRENCY_ID" msprop:Generator_ColumnVarNameInTable="columnNSI_CURRENCY_ID" msprop:Generator_ColumnPropNameInRow="NSI_CURRENCY_ID" msprop:Generator_ColumnPropNameInTable="NSI_CURRENCY_IDColumn" msprop:Generator_UserColumnName="NSI_CURRENCY_ID" type="xs:int" minOccurs="0" />
              <xs:element name="ADVANCE_PERCENT" msprop:nullValue="0" msprop:Generator_ColumnPropNameInRow="ADVANCE_PERCENT" msprop:Generator_ColumnVarNameInTable="columnADVANCE_PERCENT" msprop:Generator_ColumnPropNameInTable="ADVANCE_PERCENTColumn" msprop:Generator_UserColumnName="ADVANCE_PERCENT" type="xs:decimal" default="0" minOccurs="0" />
              <xs:element name="ADD_PAY_PERCENT" msprop:nullValue="0" msprop:Generator_ColumnPropNameInRow="ADD_PAY_PERCENT" msprop:Generator_ColumnVarNameInTable="columnADD_PAY_PERCENT" msprop:Generator_ColumnPropNameInTable="ADD_PAY_PERCENTColumn" msprop:Generator_UserColumnName="ADD_PAY_PERCENT" type="xs:decimal" default="0" minOccurs="0" />
              <xs:element name="TYPE" msprop:Generator_ColumnVarNameInTable="columnTYPE" msprop:Generator_ColumnPropNameInRow="TYPE" msprop:Generator_ColumnPropNameInTable="TYPEColumn" msprop:Generator_UserColumnName="TYPE" type="xs:boolean" minOccurs="0" />
              <xs:element name="NSI_ORGANIZATION_ID" msprop:Generator_ColumnVarNameInTable="columnNSI_ORGANIZATION_ID" msprop:Generator_ColumnPropNameInRow="NSI_ORGANIZATION_ID" msprop:Generator_ColumnPropNameInTable="NSI_ORGANIZATION_IDColumn" msprop:Generator_UserColumnName="NSI_ORGANIZATION_ID" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="INVOICE_OUT_ITEM" msprop:Generator_UserTableName="INVOICE_OUT_ITEM" msprop:Generator_RowEvArgName="INVOICE_OUT_ITEMRowChangeEvent" msprop:Generator_TableVarName="tableINVOICE_OUT_ITEM" msprop:Generator_TablePropName="INVOICE_OUT_ITEM" msprop:Generator_RowDeletingName="INVOICE_OUT_ITEMRowDeleting" msprop:Generator_RowChangingName="INVOICE_OUT_ITEMRowChanging" msprop:Generator_RowDeletedName="INVOICE_OUT_ITEMRowDeleted" msprop:Generator_RowEvHandlerName="INVOICE_OUT_ITEMRowChangeEventHandler" msprop:Generator_TableClassName="INVOICE_OUT_ITEMDataTable" msprop:Generator_RowChangedName="INVOICE_OUT_ITEMRowChanged" msprop:Generator_RowClassName="INVOICE_OUT_ITEMRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="INVOICE_OUT_ID" msprop:Generator_ColumnVarNameInTable="columnINVOICE_OUT_ID" msprop:Generator_ColumnPropNameInRow="INVOICE_OUT_ID" msprop:Generator_ColumnPropNameInTable="INVOICE_OUT_IDColumn" msprop:Generator_UserColumnName="INVOICE_OUT_ID" type="xs:int" minOccurs="0" />
              <xs:element name="PRODUCT_UNIT_ID" msprop:Generator_ColumnVarNameInTable="columnPRODUCT_UNIT_ID" msprop:Generator_ColumnPropNameInRow="PRODUCT_UNIT_ID" msprop:Generator_ColumnPropNameInTable="PRODUCT_UNIT_IDColumn" msprop:Generator_UserColumnName="PRODUCT_UNIT_ID" type="xs:int" minOccurs="0" />
              <xs:element name="SUM" msprop:nullValue="0" msprop:Generator_ColumnPropNameInRow="SUM" msprop:Generator_ColumnVarNameInTable="columnSUM" msprop:Generator_ColumnPropNameInTable="SUMColumn" msprop:Generator_UserColumnName="SUM" type="xs:decimal" minOccurs="0" />
              <xs:element name="LAST_UPDATE" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE" msprop:Generator_ColumnPropNameInTable="LAST_UPDATEColumn" msprop:Generator_UserColumnName="LAST_UPDATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="LAST_UPDATE_USER" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE_USER" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE_USER" msprop:Generator_ColumnPropNameInTable="LAST_UPDATE_USERColumn" msprop:Generator_UserColumnName="LAST_UPDATE_USER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PID" msprop:Generator_ColumnVarNameInTable="columnPID" msprop:Generator_ColumnPropNameInRow="PID" msprop:Generator_ColumnPropNameInTable="PIDColumn" msprop:Generator_UserColumnName="PID" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="NSI_CURRENCY" msprop:Generator_UserTableName="NSI_CURRENCY" msprop:Generator_RowEvArgName="NSI_CURRENCYRowChangeEvent" msprop:Generator_TableVarName="tableNSI_CURRENCY" msprop:Generator_TablePropName="NSI_CURRENCY" msprop:Generator_RowDeletingName="NSI_CURRENCYRowDeleting" msprop:Generator_RowChangingName="NSI_CURRENCYRowChanging" msprop:Generator_RowDeletedName="NSI_CURRENCYRowDeleted" msprop:Generator_RowEvHandlerName="NSI_CURRENCYRowChangeEventHandler" msprop:Generator_TableClassName="NSI_CURRENCYDataTable" msprop:Generator_RowChangedName="NSI_CURRENCYRowChanged" msprop:Generator_RowClassName="NSI_CURRENCYRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="CODE" msprop:Generator_ColumnVarNameInTable="columnCODE" msprop:Generator_ColumnPropNameInRow="CODE" msprop:Generator_ColumnPropNameInTable="CODEColumn" msprop:Generator_UserColumnName="CODE" type="xs:short" minOccurs="0" />
              <xs:element name="SHORT_NAME" msprop:Generator_ColumnVarNameInTable="columnSHORT_NAME" msprop:Generator_ColumnPropNameInRow="SHORT_NAME" msprop:Generator_ColumnPropNameInTable="SHORT_NAMEColumn" msprop:Generator_UserColumnName="SHORT_NAME">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="FULL_NAME" msprop:Generator_ColumnVarNameInTable="columnFULL_NAME" msprop:Generator_ColumnPropNameInRow="FULL_NAME" msprop:Generator_ColumnPropNameInTable="FULL_NAMEColumn" msprop:Generator_UserColumnName="FULL_NAME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="LAST_UPDATE" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE" msprop:Generator_ColumnPropNameInTable="LAST_UPDATEColumn" msprop:Generator_UserColumnName="LAST_UPDATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="LAST_UPDATE_USER" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE_USER" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE_USER" msprop:Generator_ColumnPropNameInTable="LAST_UPDATE_USERColumn" msprop:Generator_UserColumnName="LAST_UPDATE_USER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="NSI_EXCHANGE_RATE" msprop:Generator_UserTableName="NSI_EXCHANGE_RATE" msprop:Generator_RowEvArgName="NSI_EXCHANGE_RATERowChangeEvent" msprop:Generator_TableVarName="tableNSI_EXCHANGE_RATE" msprop:Generator_TablePropName="NSI_EXCHANGE_RATE" msprop:Generator_RowDeletingName="NSI_EXCHANGE_RATERowDeleting" msprop:Generator_RowChangingName="NSI_EXCHANGE_RATERowChanging" msprop:Generator_RowDeletedName="NSI_EXCHANGE_RATERowDeleted" msprop:Generator_RowEvHandlerName="NSI_EXCHANGE_RATERowChangeEventHandler" msprop:Generator_TableClassName="NSI_EXCHANGE_RATEDataTable" msprop:Generator_RowChangedName="NSI_EXCHANGE_RATERowChanged" msprop:Generator_RowClassName="NSI_EXCHANGE_RATERow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="NSI_CURRENCY_ID" msprop:Generator_ColumnVarNameInTable="columnNSI_CURRENCY_ID" msprop:Generator_ColumnPropNameInRow="NSI_CURRENCY_ID" msprop:Generator_ColumnPropNameInTable="NSI_CURRENCY_IDColumn" msprop:Generator_UserColumnName="NSI_CURRENCY_ID" type="xs:int" minOccurs="0" />
              <xs:element name="DATE" msprop:Generator_ColumnVarNameInTable="columnDATE" msprop:Generator_ColumnPropNameInRow="DATE" msprop:Generator_ColumnPropNameInTable="DATEColumn" msprop:Generator_UserColumnName="DATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="RATE" msprop:nullValue="0" msprop:Generator_ColumnPropNameInRow="RATE" msprop:Generator_ColumnVarNameInTable="columnRATE" msprop:Generator_ColumnPropNameInTable="RATEColumn" msprop:Generator_UserColumnName="RATE" type="xs:decimal" default="0" minOccurs="0" />
              <xs:element name="LAST_UPDATE" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE" msprop:Generator_ColumnPropNameInTable="LAST_UPDATEColumn" msprop:Generator_UserColumnName="LAST_UPDATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="LAST_UPDATE_USER" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE_USER" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE_USER" msprop:Generator_ColumnPropNameInTable="LAST_UPDATE_USERColumn" msprop:Generator_UserColumnName="LAST_UPDATE_USER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="NSI_EXPENSE_ITEM" msprop:Generator_UserTableName="NSI_EXPENSE_ITEM" msprop:Generator_RowEvArgName="NSI_EXPENSE_ITEMRowChangeEvent" msprop:Generator_TableVarName="tableNSI_EXPENSE_ITEM" msprop:Generator_TablePropName="NSI_EXPENSE_ITEM" msprop:Generator_RowDeletingName="NSI_EXPENSE_ITEMRowDeleting" msprop:Generator_RowChangingName="NSI_EXPENSE_ITEMRowChanging" msprop:Generator_RowDeletedName="NSI_EXPENSE_ITEMRowDeleted" msprop:Generator_RowEvHandlerName="NSI_EXPENSE_ITEMRowChangeEventHandler" msprop:Generator_TableClassName="NSI_EXPENSE_ITEMDataTable" msprop:Generator_RowChangedName="NSI_EXPENSE_ITEMRowChanged" msprop:Generator_RowClassName="NSI_EXPENSE_ITEMRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="NAME" msprop:Generator_ColumnVarNameInTable="columnNAME" msprop:Generator_ColumnPropNameInRow="NAME" msprop:Generator_ColumnPropNameInTable="NAMEColumn" msprop:Generator_UserColumnName="NAME">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="LAST_UPDATE" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE" msprop:Generator_ColumnPropNameInTable="LAST_UPDATEColumn" msprop:Generator_UserColumnName="LAST_UPDATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="LAST_UPDATE_USER" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE_USER" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE_USER" msprop:Generator_ColumnPropNameInTable="LAST_UPDATE_USERColumn" msprop:Generator_UserColumnName="LAST_UPDATE_USER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="NSI_FINANCE_RESOURCE" msprop:Generator_UserTableName="NSI_FINANCE_RESOURCE" msprop:Generator_RowEvArgName="NSI_FINANCE_RESOURCERowChangeEvent" msprop:Generator_TableVarName="tableNSI_FINANCE_RESOURCE" msprop:Generator_TablePropName="NSI_FINANCE_RESOURCE" msprop:Generator_RowDeletingName="NSI_FINANCE_RESOURCERowDeleting" msprop:Generator_RowChangingName="NSI_FINANCE_RESOURCERowChanging" msprop:Generator_RowDeletedName="NSI_FINANCE_RESOURCERowDeleted" msprop:Generator_RowEvHandlerName="NSI_FINANCE_RESOURCERowChangeEventHandler" msprop:Generator_TableClassName="NSI_FINANCE_RESOURCEDataTable" msprop:Generator_RowChangedName="NSI_FINANCE_RESOURCERowChanged" msprop:Generator_RowClassName="NSI_FINANCE_RESOURCERow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="NAME" msprop:Generator_ColumnVarNameInTable="columnNAME" msprop:Generator_ColumnPropNameInRow="NAME" msprop:Generator_ColumnPropNameInTable="NAMEColumn" msprop:Generator_UserColumnName="NAME">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="LAST_UPDATE" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE" msprop:Generator_ColumnPropNameInTable="LAST_UPDATEColumn" msprop:Generator_UserColumnName="LAST_UPDATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="LAST_UPDATE_USER" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE_USER" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE_USER" msprop:Generator_ColumnPropNameInTable="LAST_UPDATE_USERColumn" msprop:Generator_UserColumnName="LAST_UPDATE_USER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="NSI_MATERIAL" msprop:Generator_UserTableName="NSI_MATERIAL" msprop:Generator_RowEvArgName="NSI_MATERIALRowChangeEvent" msprop:Generator_TableVarName="tableNSI_MATERIAL" msprop:Generator_TablePropName="NSI_MATERIAL" msprop:Generator_RowDeletingName="NSI_MATERIALRowDeleting" msprop:Generator_RowChangingName="NSI_MATERIALRowChanging" msprop:Generator_RowDeletedName="NSI_MATERIALRowDeleted" msprop:Generator_RowEvHandlerName="NSI_MATERIALRowChangeEventHandler" msprop:Generator_TableClassName="NSI_MATERIALDataTable" msprop:Generator_RowChangedName="NSI_MATERIALRowChanged" msprop:Generator_RowClassName="NSI_MATERIALRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="NUMBER" msprop:Generator_ColumnVarNameInTable="columnNUMBER" msprop:Generator_ColumnPropNameInRow="NUMBER" msprop:Generator_ColumnPropNameInTable="NUMBERColumn" msprop:Generator_UserColumnName="NUMBER" type="xs:int" minOccurs="0" />
              <xs:element name="NAME" msprop:Generator_ColumnVarNameInTable="columnNAME" msprop:Generator_ColumnPropNameInRow="NAME" msprop:Generator_ColumnPropNameInTable="NAMEColumn" msprop:Generator_UserColumnName="NAME">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NSI_METER_ID" msprop:Generator_ColumnVarNameInTable="columnNSI_METER_ID" msprop:Generator_ColumnPropNameInRow="NSI_METER_ID" msprop:Generator_ColumnPropNameInTable="NSI_METER_IDColumn" msprop:Generator_UserColumnName="NSI_METER_ID" type="xs:int" minOccurs="0" />
              <xs:element name="LAST_UPDATE" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE" msprop:Generator_ColumnPropNameInTable="LAST_UPDATEColumn" msprop:Generator_UserColumnName="LAST_UPDATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="LAST_UPDATE_USER" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE_USER" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE_USER" msprop:Generator_ColumnPropNameInTable="LAST_UPDATE_USERColumn" msprop:Generator_UserColumnName="LAST_UPDATE_USER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NSI_METER_NAME" msprop:Generator_ColumnVarNameInTable="columnNSI_METER_NAME" msprop:Generator_ColumnPropNameInRow="NSI_METER_NAME" msprop:Generator_ColumnPropNameInTable="NSI_METER_NAMEColumn" msprop:Generator_UserColumnName="NSI_METER_NAME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="NSI_METER" msprop:Generator_UserTableName="NSI_METER" msprop:Generator_RowEvArgName="NSI_METERRowChangeEvent" msprop:Generator_TableVarName="tableNSI_METER" msprop:Generator_TablePropName="NSI_METER" msprop:Generator_RowDeletingName="NSI_METERRowDeleting" msprop:Generator_RowChangingName="NSI_METERRowChanging" msprop:Generator_RowDeletedName="NSI_METERRowDeleted" msprop:Generator_RowEvHandlerName="NSI_METERRowChangeEventHandler" msprop:Generator_TableClassName="NSI_METERDataTable" msprop:Generator_RowChangedName="NSI_METERRowChanged" msprop:Generator_RowClassName="NSI_METERRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="SHORT_NAME" msprop:Generator_ColumnVarNameInTable="columnSHORT_NAME" msprop:Generator_ColumnPropNameInRow="SHORT_NAME" msprop:Generator_ColumnPropNameInTable="SHORT_NAMEColumn" msprop:Generator_UserColumnName="SHORT_NAME">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="FULL_NAME" msprop:Generator_ColumnVarNameInTable="columnFULL_NAME" msprop:Generator_ColumnPropNameInRow="FULL_NAME" msprop:Generator_ColumnPropNameInTable="FULL_NAMEColumn" msprop:Generator_UserColumnName="FULL_NAME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="LAST_UPDATE" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE" msprop:Generator_ColumnPropNameInTable="LAST_UPDATEColumn" msprop:Generator_UserColumnName="LAST_UPDATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="LAST_UPDATE_USER" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE_USER" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE_USER" msprop:Generator_ColumnPropNameInTable="LAST_UPDATE_USERColumn" msprop:Generator_UserColumnName="LAST_UPDATE_USER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="NSI_ORGANIZATION" msprop:Generator_UserTableName="NSI_ORGANIZATION" msprop:Generator_RowEvArgName="NSI_ORGANIZATIONRowChangeEvent" msprop:Generator_TableVarName="tableNSI_ORGANIZATION" msprop:Generator_TablePropName="NSI_ORGANIZATION" msprop:Generator_RowDeletingName="NSI_ORGANIZATIONRowDeleting" msprop:Generator_RowChangingName="NSI_ORGANIZATIONRowChanging" msprop:Generator_RowDeletedName="NSI_ORGANIZATIONRowDeleted" msprop:Generator_RowEvHandlerName="NSI_ORGANIZATIONRowChangeEventHandler" msprop:Generator_TableClassName="NSI_ORGANIZATIONDataTable" msprop:Generator_RowChangedName="NSI_ORGANIZATIONRowChanged" msprop:Generator_RowClassName="NSI_ORGANIZATIONRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="SHORT_NAME" msprop:Generator_ColumnVarNameInTable="columnSHORT_NAME" msprop:Generator_ColumnPropNameInRow="SHORT_NAME" msprop:Generator_ColumnPropNameInTable="SHORT_NAMEColumn" msprop:Generator_UserColumnName="SHORT_NAME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="FULL_NAME" msprop:Generator_ColumnVarNameInTable="columnFULL_NAME" msprop:Generator_ColumnPropNameInRow="FULL_NAME" msprop:Generator_ColumnPropNameInTable="FULL_NAMEColumn" msprop:Generator_UserColumnName="FULL_NAME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="INN" msprop:Generator_ColumnVarNameInTable="columnINN" msprop:Generator_ColumnPropNameInRow="INN" msprop:Generator_ColumnPropNameInTable="INNColumn" msprop:Generator_UserColumnName="INN" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="KPP" msprop:Generator_ColumnVarNameInTable="columnKPP" msprop:Generator_ColumnPropNameInRow="KPP" msprop:Generator_ColumnPropNameInTable="KPPColumn" msprop:Generator_UserColumnName="KPP" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="OKPO" msprop:Generator_ColumnVarNameInTable="columnOKPO" msprop:Generator_ColumnPropNameInRow="OKPO" msprop:Generator_ColumnPropNameInTable="OKPOColumn" msprop:Generator_UserColumnName="OKPO" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="FULL_ADDR" msprop:Generator_ColumnVarNameInTable="columnFULL_ADDR" msprop:Generator_ColumnPropNameInRow="FULL_ADDR" msprop:Generator_ColumnPropNameInTable="FULL_ADDRColumn" msprop:Generator_UserColumnName="FULL_ADDR" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ADDR_1" msprop:Generator_ColumnVarNameInTable="columnADDR_1" msprop:Generator_ColumnPropNameInRow="ADDR_1" msprop:Generator_ColumnPropNameInTable="ADDR_1Column" msprop:Generator_UserColumnName="ADDR_1" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ADDR_2" msprop:Generator_ColumnVarNameInTable="columnADDR_2" msprop:Generator_ColumnPropNameInRow="ADDR_2" msprop:Generator_ColumnPropNameInTable="ADDR_2Column" msprop:Generator_UserColumnName="ADDR_2" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ADDR_3" msprop:Generator_ColumnVarNameInTable="columnADDR_3" msprop:Generator_ColumnPropNameInRow="ADDR_3" msprop:Generator_ColumnPropNameInTable="ADDR_3Column" msprop:Generator_UserColumnName="ADDR_3" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ADDR_4" msprop:Generator_ColumnVarNameInTable="columnADDR_4" msprop:Generator_ColumnPropNameInRow="ADDR_4" msprop:Generator_ColumnPropNameInTable="ADDR_4Column" msprop:Generator_UserColumnName="ADDR_4" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="COUNTRY" msprop:Generator_ColumnVarNameInTable="columnCOUNTRY" msprop:Generator_ColumnPropNameInRow="COUNTRY" msprop:Generator_ColumnPropNameInTable="COUNTRYColumn" msprop:Generator_UserColumnName="COUNTRY" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="CITY" msprop:Generator_ColumnVarNameInTable="columnCITY" msprop:Generator_ColumnPropNameInRow="CITY" msprop:Generator_ColumnPropNameInTable="CITYColumn" msprop:Generator_UserColumnName="CITY" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="POST_INDEX" msprop:Generator_ColumnVarNameInTable="columnPOST_INDEX" msprop:Generator_ColumnPropNameInRow="POST_INDEX" msprop:Generator_ColumnPropNameInTable="POST_INDEXColumn" msprop:Generator_UserColumnName="POST_INDEX" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="CONTACT" msprop:Generator_ColumnVarNameInTable="columnCONTACT" msprop:Generator_ColumnPropNameInRow="CONTACT" msprop:Generator_ColumnPropNameInTable="CONTACTColumn" msprop:Generator_UserColumnName="CONTACT" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PHONE" msprop:Generator_ColumnVarNameInTable="columnPHONE" msprop:Generator_ColumnPropNameInRow="PHONE" msprop:Generator_ColumnPropNameInTable="PHONEColumn" msprop:Generator_UserColumnName="PHONE" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="FAX" msprop:Generator_ColumnVarNameInTable="columnFAX" msprop:Generator_ColumnPropNameInRow="FAX" msprop:Generator_ColumnPropNameInTable="FAXColumn" msprop:Generator_UserColumnName="FAX" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="LAST_UPDATE" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE" msprop:Generator_ColumnPropNameInTable="LAST_UPDATEColumn" msprop:Generator_UserColumnName="LAST_UPDATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="LAST_UPDATE_USER" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE_USER" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE_USER" msprop:Generator_ColumnPropNameInTable="LAST_UPDATE_USERColumn" msprop:Generator_UserColumnName="LAST_UPDATE_USER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="NSI_PAY_DIRECT" msprop:Generator_UserTableName="NSI_PAY_DIRECT" msprop:Generator_RowEvArgName="NSI_PAY_DIRECTRowChangeEvent" msprop:Generator_TableVarName="tableNSI_PAY_DIRECT" msprop:Generator_TablePropName="NSI_PAY_DIRECT" msprop:Generator_RowDeletingName="NSI_PAY_DIRECTRowDeleting" msprop:Generator_RowChangingName="NSI_PAY_DIRECTRowChanging" msprop:Generator_RowDeletedName="NSI_PAY_DIRECTRowDeleted" msprop:Generator_RowEvHandlerName="NSI_PAY_DIRECTRowChangeEventHandler" msprop:Generator_TableClassName="NSI_PAY_DIRECTDataTable" msprop:Generator_RowChangedName="NSI_PAY_DIRECTRowChanged" msprop:Generator_RowClassName="NSI_PAY_DIRECTRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="NAME" msprop:Generator_ColumnVarNameInTable="columnNAME" msprop:Generator_ColumnPropNameInRow="NAME" msprop:Generator_ColumnPropNameInTable="NAMEColumn" msprop:Generator_UserColumnName="NAME">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="LAST_UPDATE" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE" msprop:Generator_ColumnPropNameInTable="LAST_UPDATEColumn" msprop:Generator_UserColumnName="LAST_UPDATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="LAST_UPDATE_USER" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE_USER" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE_USER" msprop:Generator_ColumnPropNameInTable="LAST_UPDATE_USERColumn" msprop:Generator_UserColumnName="LAST_UPDATE_USER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="NSI_PRODUCT" msprop:Generator_UserTableName="NSI_PRODUCT" msprop:Generator_RowEvArgName="NSI_PRODUCTRowChangeEvent" msprop:Generator_TableVarName="tableNSI_PRODUCT" msprop:Generator_TablePropName="NSI_PRODUCT" msprop:Generator_RowDeletingName="NSI_PRODUCTRowDeleting" msprop:Generator_RowChangingName="NSI_PRODUCTRowChanging" msprop:Generator_RowDeletedName="NSI_PRODUCTRowDeleted" msprop:Generator_RowEvHandlerName="NSI_PRODUCTRowChangeEventHandler" msprop:Generator_TableClassName="NSI_PRODUCTDataTable" msprop:Generator_RowChangedName="NSI_PRODUCTRowChanged" msprop:Generator_RowClassName="NSI_PRODUCTRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="CODE" msprop:Generator_ColumnVarNameInTable="columnCODE" msprop:Generator_ColumnPropNameInRow="CODE" msprop:Generator_ColumnPropNameInTable="CODEColumn" msprop:Generator_UserColumnName="CODE" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="SHORT_NAME" msprop:Generator_ColumnVarNameInTable="columnSHORT_NAME" msprop:Generator_ColumnPropNameInRow="SHORT_NAME" msprop:Generator_ColumnPropNameInTable="SHORT_NAMEColumn" msprop:Generator_UserColumnName="SHORT_NAME">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="FULL_NAME" msprop:Generator_ColumnVarNameInTable="columnFULL_NAME" msprop:Generator_ColumnPropNameInRow="FULL_NAME" msprop:Generator_ColumnPropNameInTable="FULL_NAMEColumn" msprop:Generator_UserColumnName="FULL_NAME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2147483647" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NSI_METER_ID" msprop:Generator_ColumnVarNameInTable="columnNSI_METER_ID" msprop:Generator_ColumnPropNameInRow="NSI_METER_ID" msprop:Generator_ColumnPropNameInTable="NSI_METER_IDColumn" msprop:Generator_UserColumnName="NSI_METER_ID" type="xs:int" minOccurs="0" />
              <xs:element name="PROD_GROUP" msprop:Generator_ColumnVarNameInTable="columnPROD_GROUP" msprop:Generator_ColumnPropNameInRow="PROD_GROUP" msprop:Generator_ColumnPropNameInTable="PROD_GROUPColumn" msprop:Generator_UserColumnName="PROD_GROUP" type="xs:int" minOccurs="0" />
              <xs:element name="N_DRAWING" msprop:Generator_ColumnVarNameInTable="columnN_DRAWING" msprop:Generator_ColumnPropNameInRow="N_DRAWING" msprop:Generator_ColumnPropNameInTable="N_DRAWINGColumn" msprop:Generator_UserColumnName="N_DRAWING" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="LAST_UPDATE" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE" msprop:Generator_ColumnPropNameInTable="LAST_UPDATEColumn" msprop:Generator_UserColumnName="LAST_UPDATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="LAST_UPDATE_USER" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE_USER" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE_USER" msprop:Generator_ColumnPropNameInTable="LAST_UPDATE_USERColumn" msprop:Generator_UserColumnName="LAST_UPDATE_USER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NSI_METER_NAME" msprop:Generator_ColumnVarNameInTable="columnNSI_METER_NAME" msprop:Generator_ColumnPropNameInRow="NSI_METER_NAME" msprop:Generator_ColumnPropNameInTable="NSI_METER_NAMEColumn" msprop:Generator_UserColumnName="NSI_METER_NAME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NSI_PROD_GROUP_NAME" msprop:Generator_ColumnVarNameInTable="columnNSI_PROD_GROUP_NAME" msprop:Generator_ColumnPropNameInRow="NSI_PROD_GROUP_NAME" msprop:Generator_ColumnPropNameInTable="NSI_PROD_GROUP_NAMEColumn" msprop:Generator_UserColumnName="NSI_PROD_GROUP_NAME">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="NSI_PRODUCT_STATE" msprop:Generator_UserTableName="NSI_PRODUCT_STATE" msprop:Generator_RowEvArgName="NSI_PRODUCT_STATERowChangeEvent" msprop:Generator_TableVarName="tableNSI_PRODUCT_STATE" msprop:Generator_TablePropName="NSI_PRODUCT_STATE" msprop:Generator_RowDeletingName="NSI_PRODUCT_STATERowDeleting" msprop:Generator_RowChangingName="NSI_PRODUCT_STATERowChanging" msprop:Generator_RowDeletedName="NSI_PRODUCT_STATERowDeleted" msprop:Generator_RowEvHandlerName="NSI_PRODUCT_STATERowChangeEventHandler" msprop:Generator_TableClassName="NSI_PRODUCT_STATEDataTable" msprop:Generator_RowChangedName="NSI_PRODUCT_STATERowChanged" msprop:Generator_RowClassName="NSI_PRODUCT_STATERow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="NAME" msprop:Generator_ColumnVarNameInTable="columnNAME" msprop:Generator_ColumnPropNameInRow="NAME" msprop:Generator_ColumnPropNameInTable="NAMEColumn" msprop:Generator_UserColumnName="NAME">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="LAST_UPDATE" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE" msprop:Generator_ColumnPropNameInTable="LAST_UPDATEColumn" msprop:Generator_UserColumnName="LAST_UPDATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="LAST_UPDATE_USER" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE_USER" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE_USER" msprop:Generator_ColumnPropNameInTable="LAST_UPDATE_USERColumn" msprop:Generator_UserColumnName="LAST_UPDATE_USER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="NSI_SERVICE" msprop:Generator_UserTableName="NSI_SERVICE" msprop:Generator_RowEvArgName="NSI_SERVICERowChangeEvent" msprop:Generator_TableVarName="tableNSI_SERVICE" msprop:Generator_TablePropName="NSI_SERVICE" msprop:Generator_RowDeletingName="NSI_SERVICERowDeleting" msprop:Generator_RowChangingName="NSI_SERVICERowChanging" msprop:Generator_RowDeletedName="NSI_SERVICERowDeleted" msprop:Generator_RowEvHandlerName="NSI_SERVICERowChangeEventHandler" msprop:Generator_TableClassName="NSI_SERVICEDataTable" msprop:Generator_RowChangedName="NSI_SERVICERowChanged" msprop:Generator_RowClassName="NSI_SERVICERow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="CODE" msprop:Generator_ColumnVarNameInTable="columnCODE" msprop:Generator_ColumnPropNameInRow="CODE" msprop:Generator_ColumnPropNameInTable="CODEColumn" msprop:Generator_UserColumnName="CODE" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="SHORT_NAME" msprop:Generator_ColumnVarNameInTable="columnSHORT_NAME" msprop:Generator_ColumnPropNameInRow="SHORT_NAME" msprop:Generator_ColumnPropNameInTable="SHORT_NAMEColumn" msprop:Generator_UserColumnName="SHORT_NAME">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="FULL_NAME" msprop:Generator_ColumnVarNameInTable="columnFULL_NAME" msprop:Generator_ColumnPropNameInRow="FULL_NAME" msprop:Generator_ColumnPropNameInTable="FULL_NAMEColumn" msprop:Generator_UserColumnName="FULL_NAME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NSI_METER_ID" msprop:Generator_ColumnVarNameInTable="columnNSI_METER_ID" msprop:Generator_ColumnPropNameInRow="NSI_METER_ID" msprop:Generator_ColumnPropNameInTable="NSI_METER_IDColumn" msprop:Generator_UserColumnName="NSI_METER_ID" type="xs:int" minOccurs="0" />
              <xs:element name="LAST_UPDATE" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE" msprop:Generator_ColumnPropNameInTable="LAST_UPDATEColumn" msprop:Generator_UserColumnName="LAST_UPDATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="LAST_UPDATE_USER" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE_USER" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE_USER" msprop:Generator_ColumnPropNameInTable="LAST_UPDATE_USERColumn" msprop:Generator_UserColumnName="LAST_UPDATE_USER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="NSI_TYPE_OF_ACTIVITY" msprop:Generator_UserTableName="NSI_TYPE_OF_ACTIVITY" msprop:Generator_RowEvArgName="NSI_TYPE_OF_ACTIVITYRowChangeEvent" msprop:Generator_TableVarName="tableNSI_TYPE_OF_ACTIVITY" msprop:Generator_TablePropName="NSI_TYPE_OF_ACTIVITY" msprop:Generator_RowDeletingName="NSI_TYPE_OF_ACTIVITYRowDeleting" msprop:Generator_RowChangingName="NSI_TYPE_OF_ACTIVITYRowChanging" msprop:Generator_RowDeletedName="NSI_TYPE_OF_ACTIVITYRowDeleted" msprop:Generator_RowEvHandlerName="NSI_TYPE_OF_ACTIVITYRowChangeEventHandler" msprop:Generator_TableClassName="NSI_TYPE_OF_ACTIVITYDataTable" msprop:Generator_RowChangedName="NSI_TYPE_OF_ACTIVITYRowChanged" msprop:Generator_RowClassName="NSI_TYPE_OF_ACTIVITYRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="CODE" msprop:Generator_ColumnVarNameInTable="columnCODE" msprop:Generator_ColumnPropNameInRow="CODE" msprop:Generator_ColumnPropNameInTable="CODEColumn" msprop:Generator_UserColumnName="CODE" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NAME" msprop:Generator_ColumnVarNameInTable="columnNAME" msprop:Generator_ColumnPropNameInRow="NAME" msprop:Generator_ColumnPropNameInTable="NAMEColumn" msprop:Generator_UserColumnName="NAME">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="LAST_UPDATE" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE" msprop:Generator_ColumnPropNameInTable="LAST_UPDATEColumn" msprop:Generator_UserColumnName="LAST_UPDATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="LAST_UPDATE_USER" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE_USER" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE_USER" msprop:Generator_ColumnPropNameInTable="LAST_UPDATE_USERColumn" msprop:Generator_UserColumnName="LAST_UPDATE_USER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="PAY_IN_ON_INV_OUT" msprop:Generator_UserTableName="PAY_IN_ON_INV_OUT" msprop:Generator_RowEvArgName="PAY_IN_ON_INV_OUTRowChangeEvent" msprop:Generator_TableVarName="tablePAY_IN_ON_INV_OUT" msprop:Generator_TablePropName="PAY_IN_ON_INV_OUT" msprop:Generator_RowDeletingName="PAY_IN_ON_INV_OUTRowDeleting" msprop:Generator_RowChangingName="PAY_IN_ON_INV_OUTRowChanging" msprop:Generator_RowDeletedName="PAY_IN_ON_INV_OUTRowDeleted" msprop:Generator_RowEvHandlerName="PAY_IN_ON_INV_OUTRowChangeEventHandler" msprop:Generator_TableClassName="PAY_IN_ON_INV_OUTDataTable" msprop:Generator_RowChangedName="PAY_IN_ON_INV_OUTRowChanged" msprop:Generator_RowClassName="PAY_IN_ON_INV_OUTRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="PAYMENT_IN_ID" msprop:Generator_ColumnVarNameInTable="columnPAYMENT_IN_ID" msprop:Generator_ColumnPropNameInRow="PAYMENT_IN_ID" msprop:Generator_ColumnPropNameInTable="PAYMENT_IN_IDColumn" msprop:Generator_UserColumnName="PAYMENT_IN_ID" type="xs:int" minOccurs="0" />
              <xs:element name="INVOICE_OUT_ID" msprop:Generator_ColumnVarNameInTable="columnINVOICE_OUT_ID" msprop:Generator_ColumnPropNameInRow="INVOICE_OUT_ID" msprop:Generator_ColumnPropNameInTable="INVOICE_OUT_IDColumn" msprop:Generator_UserColumnName="INVOICE_OUT_ID" type="xs:int" minOccurs="0" />
              <xs:element name="SUM_CUR" msprop:Generator_ColumnVarNameInTable="columnSUM_CUR" msprop:Generator_ColumnPropNameInRow="SUM_CUR" msprop:Generator_ColumnPropNameInTable="SUM_CURColumn" msprop:Generator_UserColumnName="SUM_CUR" type="xs:decimal" minOccurs="0" />
              <xs:element name="SUM_RUB" msprop:Generator_ColumnVarNameInTable="columnSUM_RUB" msprop:Generator_ColumnPropNameInRow="SUM_RUB" msprop:Generator_ColumnPropNameInTable="SUM_RUBColumn" msprop:Generator_UserColumnName="SUM_RUB" type="xs:decimal" minOccurs="0" />
              <xs:element name="LAST_UPDATE" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE" msprop:Generator_ColumnPropNameInTable="LAST_UPDATEColumn" msprop:Generator_UserColumnName="LAST_UPDATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="LAST_UPDATE_USER" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE_USER" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE_USER" msprop:Generator_ColumnPropNameInTable="LAST_UPDATE_USERColumn" msprop:Generator_UserColumnName="LAST_UPDATE_USER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PID" msprop:Generator_ColumnVarNameInTable="columnPID" msprop:Generator_ColumnPropNameInRow="PID" msprop:Generator_ColumnPropNameInTable="PIDColumn" msprop:Generator_UserColumnName="PID" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="PAY_IN_ON_SERVICE" msprop:Generator_UserTableName="PAY_IN_ON_SERVICE" msprop:Generator_RowEvArgName="PAY_IN_ON_SERVICERowChangeEvent" msprop:Generator_TableVarName="tablePAY_IN_ON_SERVICE" msprop:Generator_TablePropName="PAY_IN_ON_SERVICE" msprop:Generator_RowDeletingName="PAY_IN_ON_SERVICERowDeleting" msprop:Generator_RowChangingName="PAY_IN_ON_SERVICERowChanging" msprop:Generator_RowDeletedName="PAY_IN_ON_SERVICERowDeleted" msprop:Generator_RowEvHandlerName="PAY_IN_ON_SERVICERowChangeEventHandler" msprop:Generator_TableClassName="PAY_IN_ON_SERVICEDataTable" msprop:Generator_RowChangedName="PAY_IN_ON_SERVICERowChanged" msprop:Generator_RowClassName="PAY_IN_ON_SERVICERow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="PAYMENT_IN_ID" msprop:Generator_ColumnVarNameInTable="columnPAYMENT_IN_ID" msprop:Generator_ColumnPropNameInRow="PAYMENT_IN_ID" msprop:Generator_ColumnPropNameInTable="PAYMENT_IN_IDColumn" msprop:Generator_UserColumnName="PAYMENT_IN_ID" type="xs:int" />
              <xs:element name="NSI_SERVICE_ID" msprop:Generator_ColumnVarNameInTable="columnNSI_SERVICE_ID" msprop:Generator_ColumnPropNameInRow="NSI_SERVICE_ID" msprop:Generator_ColumnPropNameInTable="NSI_SERVICE_IDColumn" msprop:Generator_UserColumnName="NSI_SERVICE_ID" type="xs:int" />
              <xs:element name="LAST_UPDATE" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE" msprop:Generator_ColumnPropNameInTable="LAST_UPDATEColumn" msprop:Generator_UserColumnName="LAST_UPDATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="LAST_UPDATE_USER" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE_USER" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE_USER" msprop:Generator_ColumnPropNameInTable="LAST_UPDATE_USERColumn" msprop:Generator_UserColumnName="LAST_UPDATE_USER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PID" msprop:Generator_ColumnVarNameInTable="columnPID" msprop:Generator_ColumnPropNameInRow="PID" msprop:Generator_ColumnPropNameInTable="PIDColumn" msprop:Generator_UserColumnName="PID" type="xs:int" minOccurs="0" />
              <xs:element name="QAUNTITY" msprop:Generator_ColumnVarNameInTable="columnQAUNTITY" msprop:Generator_ColumnPropNameInRow="QAUNTITY" msprop:Generator_ColumnPropNameInTable="QAUNTITYColumn" msprop:Generator_UserColumnName="QAUNTITY" type="xs:decimal" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="PAY_OUT_ON_INV_IN" msprop:Generator_UserTableName="PAY_OUT_ON_INV_IN" msprop:Generator_RowEvArgName="PAY_OUT_ON_INV_INRowChangeEvent" msprop:Generator_TableVarName="tablePAY_OUT_ON_INV_IN" msprop:Generator_TablePropName="PAY_OUT_ON_INV_IN" msprop:Generator_RowDeletingName="PAY_OUT_ON_INV_INRowDeleting" msprop:Generator_RowChangingName="PAY_OUT_ON_INV_INRowChanging" msprop:Generator_RowDeletedName="PAY_OUT_ON_INV_INRowDeleted" msprop:Generator_RowEvHandlerName="PAY_OUT_ON_INV_INRowChangeEventHandler" msprop:Generator_TableClassName="PAY_OUT_ON_INV_INDataTable" msprop:Generator_RowChangedName="PAY_OUT_ON_INV_INRowChanged" msprop:Generator_RowClassName="PAY_OUT_ON_INV_INRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="PAYMENT_OUT_ID" msprop:Generator_ColumnVarNameInTable="columnPAYMENT_OUT_ID" msprop:Generator_ColumnPropNameInRow="PAYMENT_OUT_ID" msprop:Generator_ColumnPropNameInTable="PAYMENT_OUT_IDColumn" msprop:Generator_UserColumnName="PAYMENT_OUT_ID" type="xs:int" minOccurs="0" />
              <xs:element name="INVOICE_IN_ID" msprop:Generator_ColumnVarNameInTable="columnINVOICE_IN_ID" msprop:Generator_ColumnPropNameInRow="INVOICE_IN_ID" msprop:Generator_ColumnPropNameInTable="INVOICE_IN_IDColumn" msprop:Generator_UserColumnName="INVOICE_IN_ID" type="xs:int" minOccurs="0" />
              <xs:element name="SUM_CUR" msprop:nullValue="0" msprop:Generator_ColumnPropNameInRow="SUM_CUR" msprop:Generator_ColumnVarNameInTable="columnSUM_CUR" msprop:Generator_ColumnPropNameInTable="SUM_CURColumn" msprop:Generator_UserColumnName="SUM_CUR" type="xs:decimal" default="0" minOccurs="0" />
              <xs:element name="SUM_RUB" msprop:nullValue="0" msprop:Generator_ColumnPropNameInRow="SUM_RUB" msprop:Generator_ColumnVarNameInTable="columnSUM_RUB" msprop:Generator_ColumnPropNameInTable="SUM_RUBColumn" msprop:Generator_UserColumnName="SUM_RUB" type="xs:decimal" default="0" minOccurs="0" />
              <xs:element name="COMMENTS" msprop:Generator_ColumnVarNameInTable="columnCOMMENTS" msprop:Generator_ColumnPropNameInRow="COMMENTS" msprop:Generator_ColumnPropNameInTable="COMMENTSColumn" msprop:Generator_UserColumnName="COMMENTS" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="LAST_UPDATE" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE" msprop:Generator_ColumnPropNameInTable="LAST_UPDATEColumn" msprop:Generator_UserColumnName="LAST_UPDATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="LAST_UPDATE_USER" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE_USER" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE_USER" msprop:Generator_ColumnPropNameInTable="LAST_UPDATE_USERColumn" msprop:Generator_UserColumnName="LAST_UPDATE_USER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PAY_NUMBER" msprop:Generator_ColumnVarNameInTable="columnPAY_NUMBER" msprop:Generator_ColumnPropNameInRow="PAY_NUMBER" msprop:Generator_ColumnPropNameInTable="PAY_NUMBERColumn" msprop:Generator_UserColumnName="PAY_NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PAY_DATE" msprop:Generator_ColumnVarNameInTable="columnPAY_DATE" msprop:Generator_ColumnPropNameInRow="PAY_DATE" msprop:Generator_ColumnPropNameInTable="PAY_DATEColumn" msprop:Generator_UserColumnName="PAY_DATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="INV_NUMBER" msprop:Generator_ColumnVarNameInTable="columnINV_NUMBER" msprop:Generator_ColumnPropNameInRow="INV_NUMBER" msprop:Generator_ColumnPropNameInTable="INV_NUMBERColumn" msprop:Generator_UserColumnName="INV_NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="INV_RG_NUMBER" msprop:Generator_ColumnVarNameInTable="columnINV_RG_NUMBER" msprop:Generator_ColumnPropNameInRow="INV_RG_NUMBER" msprop:Generator_ColumnPropNameInTable="INV_RG_NUMBERColumn" msprop:Generator_UserColumnName="INV_RG_NUMBER" type="xs:int" minOccurs="0" />
              <xs:element name="INV_DATE" msprop:Generator_ColumnVarNameInTable="columnINV_DATE" msprop:Generator_ColumnPropNameInRow="INV_DATE" msprop:Generator_ColumnPropNameInTable="INV_DATEColumn" msprop:Generator_UserColumnName="INV_DATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="INV_SUM" msprop:Generator_ColumnVarNameInTable="columnINV_SUM" msprop:Generator_ColumnPropNameInRow="INV_SUM" msprop:Generator_ColumnPropNameInTable="INV_SUMColumn" msprop:Generator_UserColumnName="INV_SUM" type="xs:decimal" minOccurs="0" />
              <xs:element name="CURRENCY_NAME" msprop:nullValue="_null" msprop:Generator_ColumnPropNameInRow="CURRENCY_NAME" msprop:Generator_ColumnVarNameInTable="columnCURRENCY_NAME" msprop:Generator_ColumnPropNameInTable="CURRENCY_NAMEColumn" msprop:Generator_UserColumnName="CURRENCY_NAME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PID" msprop:Generator_ColumnVarNameInTable="columnPID" msprop:Generator_ColumnPropNameInRow="PID" msprop:Generator_ColumnPropNameInTable="PIDColumn" msprop:Generator_UserColumnName="PID" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="PAYMENT_IN" msprop:Generator_UserTableName="PAYMENT_IN" msprop:Generator_RowEvArgName="PAYMENT_INRowChangeEvent" msprop:Generator_TableVarName="tablePAYMENT_IN" msprop:Generator_TablePropName="PAYMENT_IN" msprop:Generator_RowDeletingName="PAYMENT_INRowDeleting" msprop:Generator_RowChangingName="PAYMENT_INRowChanging" msprop:Generator_RowDeletedName="PAYMENT_INRowDeleted" msprop:Generator_RowEvHandlerName="PAYMENT_INRowChangeEventHandler" msprop:Generator_TableClassName="PAYMENT_INDataTable" msprop:Generator_RowChangedName="PAYMENT_INRowChanged" msprop:Generator_RowClassName="PAYMENT_INRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="NUMBER" msprop:Generator_ColumnVarNameInTable="columnNUMBER" msprop:Generator_ColumnPropNameInRow="NUMBER" msprop:Generator_ColumnPropNameInTable="NUMBERColumn" msprop:Generator_UserColumnName="NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="TYPE" msprop:Generator_ColumnVarNameInTable="columnTYPE" msprop:Generator_ColumnPropNameInRow="TYPE" msprop:Generator_ColumnPropNameInTable="TYPEColumn" msprop:Generator_UserColumnName="TYPE" type="xs:boolean" minOccurs="0" />
              <xs:element name="DATE" msprop:Generator_ColumnVarNameInTable="columnDATE" msprop:Generator_ColumnPropNameInRow="DATE" msprop:Generator_ColumnPropNameInTable="DATEColumn" msprop:Generator_UserColumnName="DATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="SUM_RUB" msprop:nullValue="0" msprop:Generator_ColumnPropNameInRow="SUM_RUB" msprop:Generator_ColumnVarNameInTable="columnSUM_RUB" msprop:Generator_ColumnPropNameInTable="SUM_RUBColumn" msprop:Generator_UserColumnName="SUM_RUB" type="xs:decimal" default="0" minOccurs="0" />
              <xs:element name="NSI_ORGANIZATION_ID" msprop:Generator_ColumnVarNameInTable="columnNSI_ORGANIZATION_ID" msprop:Generator_ColumnPropNameInRow="NSI_ORGANIZATION_ID" msprop:Generator_ColumnPropNameInTable="NSI_ORGANIZATION_IDColumn" msprop:Generator_UserColumnName="NSI_ORGANIZATION_ID" type="xs:int" minOccurs="0" />
              <xs:element name="DESCRIPTION" msprop:Generator_ColumnVarNameInTable="columnDESCRIPTION" msprop:Generator_ColumnPropNameInRow="DESCRIPTION" msprop:Generator_ColumnPropNameInTable="DESCRIPTIONColumn" msprop:Generator_UserColumnName="DESCRIPTION" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2147483647" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="LAST_UPDATE" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE" msprop:Generator_ColumnPropNameInTable="LAST_UPDATEColumn" msprop:Generator_UserColumnName="LAST_UPDATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="LAST_UPDATE_USER" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE_USER" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE_USER" msprop:Generator_ColumnPropNameInTable="LAST_UPDATE_USERColumn" msprop:Generator_UserColumnName="LAST_UPDATE_USER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PID" msprop:Generator_ColumnVarNameInTable="columnPID" msprop:Generator_ColumnPropNameInRow="PID" msprop:Generator_ColumnPropNameInTable="PIDColumn" msprop:Generator_UserColumnName="PID" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="PAYMENT_IN_ITEM" msprop:Generator_UserTableName="PAYMENT_IN_ITEM" msprop:Generator_RowEvArgName="PAYMENT_IN_ITEMRowChangeEvent" msprop:Generator_TableVarName="tablePAYMENT_IN_ITEM" msprop:Generator_TablePropName="PAYMENT_IN_ITEM" msprop:Generator_RowDeletingName="PAYMENT_IN_ITEMRowDeleting" msprop:Generator_RowChangingName="PAYMENT_IN_ITEMRowChanging" msprop:Generator_RowDeletedName="PAYMENT_IN_ITEMRowDeleted" msprop:Generator_RowEvHandlerName="PAYMENT_IN_ITEMRowChangeEventHandler" msprop:Generator_TableClassName="PAYMENT_IN_ITEMDataTable" msprop:Generator_RowChangedName="PAYMENT_IN_ITEMRowChanged" msprop:Generator_RowClassName="PAYMENT_IN_ITEMRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="PAYMENT_IN_ID" msprop:Generator_ColumnVarNameInTable="columnPAYMENT_IN_ID" msprop:Generator_ColumnPropNameInRow="PAYMENT_IN_ID" msprop:Generator_ColumnPropNameInTable="PAYMENT_IN_IDColumn" msprop:Generator_UserColumnName="PAYMENT_IN_ID" type="xs:int" minOccurs="0" />
              <xs:element name="PRODUCT_UNIT_ID" msprop:Generator_ColumnVarNameInTable="columnPRODUCT_UNIT_ID" msprop:Generator_ColumnPropNameInRow="PRODUCT_UNIT_ID" msprop:Generator_ColumnPropNameInTable="PRODUCT_UNIT_IDColumn" msprop:Generator_UserColumnName="PRODUCT_UNIT_ID" type="xs:int" minOccurs="0" />
              <xs:element name="SUM_CUR" msprop:Generator_ColumnVarNameInTable="columnSUM_CUR" msprop:Generator_ColumnPropNameInRow="SUM_CUR" msprop:Generator_ColumnPropNameInTable="SUM_CURColumn" msprop:Generator_UserColumnName="SUM_CUR" type="xs:decimal" minOccurs="0" />
              <xs:element name="SUM_RUB" msprop:Generator_ColumnVarNameInTable="columnSUM_RUB" msprop:Generator_ColumnPropNameInRow="SUM_RUB" msprop:Generator_ColumnPropNameInTable="SUM_RUBColumn" msprop:Generator_UserColumnName="SUM_RUB" type="xs:decimal" minOccurs="0" />
              <xs:element name="LAST_UPDATE" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE" msprop:Generator_ColumnPropNameInTable="LAST_UPDATEColumn" msprop:Generator_UserColumnName="LAST_UPDATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="LAST_UPDATE_USER" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE_USER" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE_USER" msprop:Generator_ColumnPropNameInTable="LAST_UPDATE_USERColumn" msprop:Generator_UserColumnName="LAST_UPDATE_USER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PID" msprop:Generator_ColumnVarNameInTable="columnPID" msprop:Generator_ColumnPropNameInRow="PID" msprop:Generator_ColumnPropNameInTable="PIDColumn" msprop:Generator_UserColumnName="PID" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="PAYMENT_OUT" msprop:Generator_UserTableName="PAYMENT_OUT" msprop:Generator_RowEvArgName="PAYMENT_OUTRowChangeEvent" msprop:Generator_TableVarName="tablePAYMENT_OUT" msprop:Generator_TablePropName="PAYMENT_OUT" msprop:Generator_RowDeletingName="PAYMENT_OUTRowDeleting" msprop:Generator_RowChangingName="PAYMENT_OUTRowChanging" msprop:Generator_RowDeletedName="PAYMENT_OUTRowDeleted" msprop:Generator_RowEvHandlerName="PAYMENT_OUTRowChangeEventHandler" msprop:Generator_TableClassName="PAYMENT_OUTDataTable" msprop:Generator_RowChangedName="PAYMENT_OUTRowChanged" msprop:Generator_RowClassName="PAYMENT_OUTRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="NUMBER" msprop:Generator_ColumnVarNameInTable="columnNUMBER" msprop:Generator_ColumnPropNameInRow="NUMBER" msprop:Generator_ColumnPropNameInTable="NUMBERColumn" msprop:Generator_UserColumnName="NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="SUM_RUB" msprop:nullValue="0" msprop:Generator_ColumnPropNameInRow="SUM_RUB" msprop:Generator_ColumnVarNameInTable="columnSUM_RUB" msprop:Generator_ColumnPropNameInTable="SUM_RUBColumn" msprop:Generator_UserColumnName="SUM_RUB" type="xs:decimal" default="0" minOccurs="0" />
              <xs:element name="DATE" msprop:Generator_ColumnVarNameInTable="columnDATE" msprop:Generator_ColumnPropNameInRow="DATE" msprop:Generator_ColumnPropNameInTable="DATEColumn" msprop:Generator_UserColumnName="DATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="LAST_UPDATE" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE" msprop:Generator_ColumnPropNameInTable="LAST_UPDATEColumn" msprop:Generator_UserColumnName="LAST_UPDATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="LAST_UPDATE_USER" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE_USER" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE_USER" msprop:Generator_ColumnPropNameInTable="LAST_UPDATE_USERColumn" msprop:Generator_UserColumnName="LAST_UPDATE_USER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="DESCRIPTION" msprop:Generator_ColumnVarNameInTable="columnDESCRIPTION" msprop:Generator_ColumnPropNameInRow="DESCRIPTION" msprop:Generator_ColumnPropNameInTable="DESCRIPTIONColumn" msprop:Generator_UserColumnName="DESCRIPTION" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2147483647" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PID" msprop:Generator_ColumnVarNameInTable="columnPID" msprop:Generator_ColumnPropNameInRow="PID" msprop:Generator_ColumnPropNameInTable="PIDColumn" msprop:Generator_UserColumnName="PID" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="PRODUCT_COST" msprop:Generator_UserTableName="PRODUCT_COST" msprop:Generator_RowEvArgName="PRODUCT_COSTRowChangeEvent" msprop:Generator_TableVarName="tablePRODUCT_COST" msprop:Generator_TablePropName="PRODUCT_COST" msprop:Generator_RowDeletingName="PRODUCT_COSTRowDeleting" msprop:Generator_RowChangingName="PRODUCT_COSTRowChanging" msprop:Generator_RowDeletedName="PRODUCT_COSTRowDeleted" msprop:Generator_RowEvHandlerName="PRODUCT_COSTRowChangeEventHandler" msprop:Generator_TableClassName="PRODUCT_COSTDataTable" msprop:Generator_RowChangedName="PRODUCT_COSTRowChanged" msprop:Generator_RowClassName="PRODUCT_COSTRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="COST_PROTOCOL_ID" msprop:Generator_ColumnVarNameInTable="columnCOST_PROTOCOL_ID" msprop:Generator_ColumnPropNameInRow="COST_PROTOCOL_ID" msprop:Generator_ColumnPropNameInTable="COST_PROTOCOL_IDColumn" msprop:Generator_UserColumnName="COST_PROTOCOL_ID" type="xs:int" />
              <xs:element name="PRODUCT_UNIT_ID" msprop:Generator_ColumnVarNameInTable="columnPRODUCT_UNIT_ID" msprop:Generator_ColumnPropNameInRow="PRODUCT_UNIT_ID" msprop:Generator_ColumnPropNameInTable="PRODUCT_UNIT_IDColumn" msprop:Generator_UserColumnName="PRODUCT_UNIT_ID" type="xs:int" />
              <xs:element name="COST" msprop:Generator_ColumnVarNameInTable="columnCOST" msprop:Generator_ColumnPropNameInRow="COST" msprop:Generator_ColumnPropNameInTable="COSTColumn" msprop:Generator_UserColumnName="COST" type="xs:decimal" minOccurs="0" />
              <xs:element name="LAST_UPDATE" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE" msprop:Generator_ColumnPropNameInTable="LAST_UPDATEColumn" msprop:Generator_UserColumnName="LAST_UPDATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="LAST_UPDATE_USER" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE_USER" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE_USER" msprop:Generator_ColumnPropNameInTable="LAST_UPDATE_USERColumn" msprop:Generator_UserColumnName="LAST_UPDATE_USER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PID" msprop:Generator_ColumnVarNameInTable="columnPID" msprop:Generator_ColumnPropNameInRow="PID" msprop:Generator_ColumnPropNameInTable="PIDColumn" msprop:Generator_UserColumnName="PID" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="VAT_INV_ON_SERVICE" msprop:Generator_UserTableName="VAT_INV_ON_SERVICE" msprop:Generator_RowEvArgName="VAT_INV_ON_SERVICERowChangeEvent" msprop:Generator_TableVarName="tableVAT_INV_ON_SERVICE" msprop:Generator_TablePropName="VAT_INV_ON_SERVICE" msprop:Generator_RowDeletingName="VAT_INV_ON_SERVICERowDeleting" msprop:Generator_RowChangingName="VAT_INV_ON_SERVICERowChanging" msprop:Generator_RowDeletedName="VAT_INV_ON_SERVICERowDeleted" msprop:Generator_RowEvHandlerName="VAT_INV_ON_SERVICERowChangeEventHandler" msprop:Generator_TableClassName="VAT_INV_ON_SERVICEDataTable" msprop:Generator_RowChangedName="VAT_INV_ON_SERVICERowChanged" msprop:Generator_RowClassName="VAT_INV_ON_SERVICERow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="NSI_SERVICE_ID" msprop:Generator_ColumnVarNameInTable="columnNSI_SERVICE_ID" msprop:Generator_ColumnPropNameInRow="NSI_SERVICE_ID" msprop:Generator_ColumnPropNameInTable="NSI_SERVICE_IDColumn" msprop:Generator_UserColumnName="NSI_SERVICE_ID" type="xs:int" />
              <xs:element name="VAT_INVOICE_ID" msprop:Generator_ColumnVarNameInTable="columnVAT_INVOICE_ID" msprop:Generator_ColumnPropNameInRow="VAT_INVOICE_ID" msprop:Generator_ColumnPropNameInTable="VAT_INVOICE_IDColumn" msprop:Generator_UserColumnName="VAT_INVOICE_ID" type="xs:int" />
              <xs:element name="LAST_UPDATE" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE" msprop:Generator_ColumnPropNameInTable="LAST_UPDATEColumn" msprop:Generator_UserColumnName="LAST_UPDATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="LAST_UPDATE_USER" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE_USER" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE_USER" msprop:Generator_ColumnPropNameInTable="LAST_UPDATE_USERColumn" msprop:Generator_UserColumnName="LAST_UPDATE_USER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PID" msprop:Generator_ColumnVarNameInTable="columnPID" msprop:Generator_ColumnPropNameInRow="PID" msprop:Generator_ColumnPropNameInTable="PIDColumn" msprop:Generator_UserColumnName="PID" type="xs:int" minOccurs="0" />
              <xs:element name="QUANTITY" msprop:Generator_ColumnVarNameInTable="columnQUANTITY" msprop:Generator_ColumnPropNameInRow="QUANTITY" msprop:Generator_ColumnPropNameInTable="QUANTITYColumn" msprop:Generator_UserColumnName="QUANTITY" type="xs:decimal" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="VAT_INVOICE" msprop:Generator_UserTableName="VAT_INVOICE" msprop:Generator_RowEvArgName="VAT_INVOICERowChangeEvent" msprop:Generator_TableVarName="tableVAT_INVOICE" msprop:Generator_TablePropName="VAT_INVOICE" msprop:Generator_RowDeletingName="VAT_INVOICERowDeleting" msprop:Generator_RowChangingName="VAT_INVOICERowChanging" msprop:Generator_RowDeletedName="VAT_INVOICERowDeleted" msprop:Generator_RowEvHandlerName="VAT_INVOICERowChangeEventHandler" msprop:Generator_TableClassName="VAT_INVOICEDataTable" msprop:Generator_RowChangedName="VAT_INVOICERowChanged" msprop:Generator_RowClassName="VAT_INVOICERow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="NUMBER" msprop:Generator_ColumnVarNameInTable="columnNUMBER" msprop:Generator_ColumnPropNameInRow="NUMBER" msprop:Generator_ColumnPropNameInTable="NUMBERColumn" msprop:Generator_UserColumnName="NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="DATE" msprop:Generator_ColumnVarNameInTable="columnDATE" msprop:Generator_ColumnPropNameInRow="DATE" msprop:Generator_ColumnPropNameInTable="DATEColumn" msprop:Generator_UserColumnName="DATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="SUM_RUB" msprop:nullValue="0" msprop:Generator_ColumnPropNameInRow="SUM_RUB" msprop:Generator_ColumnVarNameInTable="columnSUM_RUB" msprop:Generator_ColumnPropNameInTable="SUM_RUBColumn" msprop:Generator_UserColumnName="SUM_RUB" type="xs:decimal" default="0" minOccurs="0" />
              <xs:element name="TYPE" msprop:Generator_ColumnVarNameInTable="columnTYPE" msprop:Generator_ColumnPropNameInRow="TYPE" msprop:Generator_ColumnPropNameInTable="TYPEColumn" msprop:Generator_UserColumnName="TYPE" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="IS_GUARANTY_LET" msprop:Generator_ColumnVarNameInTable="columnIS_GUARANTY_LET" msprop:Generator_ColumnPropNameInRow="IS_GUARANTY_LET" msprop:Generator_ColumnPropNameInTable="IS_GUARANTY_LETColumn" msprop:Generator_UserColumnName="IS_GUARANTY_LET" type="xs:boolean" />
              <xs:element name="GUARANTY_LET_DATE" msprop:Generator_ColumnVarNameInTable="columnGUARANTY_LET_DATE" msprop:Generator_ColumnPropNameInRow="GUARANTY_LET_DATE" msprop:Generator_ColumnPropNameInTable="GUARANTY_LET_DATEColumn" msprop:Generator_UserColumnName="GUARANTY_LET_DATE" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="EXEC_TYPE" msprop:Generator_ColumnVarNameInTable="columnEXEC_TYPE" msprop:Generator_ColumnPropNameInRow="EXEC_TYPE" msprop:Generator_ColumnPropNameInTable="EXEC_TYPEColumn" msprop:Generator_UserColumnName="EXEC_TYPE" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="EXEC_NUMBER" msprop:Generator_ColumnVarNameInTable="columnEXEC_NUMBER" msprop:Generator_ColumnPropNameInRow="EXEC_NUMBER" msprop:Generator_ColumnPropNameInTable="EXEC_NUMBERColumn" msprop:Generator_UserColumnName="EXEC_NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="LAST_UPDATE" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE" msprop:Generator_ColumnPropNameInTable="LAST_UPDATEColumn" msprop:Generator_UserColumnName="LAST_UPDATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="LAST_UPDATE_USER" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE_USER" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE_USER" msprop:Generator_ColumnPropNameInTable="LAST_UPDATE_USERColumn" msprop:Generator_UserColumnName="LAST_UPDATE_USER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PID" msprop:Generator_ColumnVarNameInTable="columnPID" msprop:Generator_ColumnPropNameInRow="PID" msprop:Generator_ColumnPropNameInTable="PIDColumn" msprop:Generator_UserColumnName="PID" type="xs:int" minOccurs="0" />
              <xs:element name="NSI_ORGANIZATION_ID" msprop:Generator_ColumnVarNameInTable="columnNSI_ORGANIZATION_ID" msprop:Generator_ColumnPropNameInRow="NSI_ORGANIZATION_ID" msprop:Generator_ColumnPropNameInTable="NSI_ORGANIZATION_IDColumn" msprop:Generator_UserColumnName="NSI_ORGANIZATION_ID" type="xs:int" minOccurs="0" />
              <xs:element name="DESCRIPTION" msprop:Generator_ColumnVarNameInTable="columnDESCRIPTION" msprop:Generator_ColumnPropNameInRow="DESCRIPTION" msprop:Generator_ColumnPropNameInTable="DESCRIPTIONColumn" msprop:Generator_UserColumnName="DESCRIPTION" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2147483647" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="INVOICE_OF_PAY_ADD_NUM" msprop:Generator_ColumnVarNameInTable="columnINVOICE_OF_PAY_ADD_NUM" msprop:Generator_ColumnPropNameInRow="INVOICE_OF_PAY_ADD_NUM" msprop:Generator_ColumnPropNameInTable="INVOICE_OF_PAY_ADD_NUMColumn" msprop:Generator_UserColumnName="INVOICE_OF_PAY_ADD_NUM" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="PRODUCT_UNIT" msprop:Generator_UserTableName="PRODUCT_UNIT" msprop:Generator_RowEvArgName="PRODUCT_UNITRowChangeEvent" msprop:Generator_TableVarName="tablePRODUCT_UNIT" msprop:Generator_TablePropName="PRODUCT_UNIT" msprop:Generator_RowDeletingName="PRODUCT_UNITRowDeleting" msprop:Generator_RowChangingName="PRODUCT_UNITRowChanging" msprop:Generator_RowDeletedName="PRODUCT_UNITRowDeleted" msprop:Generator_RowEvHandlerName="PRODUCT_UNITRowChangeEventHandler" msprop:Generator_TableClassName="PRODUCT_UNITDataTable" msprop:Generator_RowChangedName="PRODUCT_UNITRowChanged" msprop:Generator_RowClassName="PRODUCT_UNITRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="CP_STAGE_ID" msprop:Generator_ColumnVarNameInTable="columnCP_STAGE_ID" msprop:Generator_ColumnPropNameInRow="CP_STAGE_ID" msprop:Generator_ColumnPropNameInTable="CP_STAGE_IDColumn" msprop:Generator_UserColumnName="CP_STAGE_ID" type="xs:int" />
              <xs:element name="TYPE" msprop:Generator_ColumnVarNameInTable="columnTYPE" msprop:Generator_ColumnPropNameInRow="TYPE" msprop:Generator_ColumnPropNameInTable="TYPEColumn" msprop:Generator_UserColumnName="TYPE" type="xs:boolean" minOccurs="0" />
              <xs:element name="NSI_PRODUCT_ID" msprop:Generator_ColumnVarNameInTable="columnNSI_PRODUCT_ID" msprop:Generator_ColumnPropNameInRow="NSI_PRODUCT_ID" msprop:Generator_ColumnPropNameInTable="NSI_PRODUCT_IDColumn" msprop:Generator_UserColumnName="NSI_PRODUCT_ID" type="xs:int" minOccurs="0" />
              <xs:element name="NAME" msprop:Generator_ColumnVarNameInTable="columnNAME" msprop:Generator_ColumnPropNameInRow="NAME" msprop:Generator_ColumnPropNameInTable="NAMEColumn" msprop:Generator_UserColumnName="NAME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="VAT_INVOICE_ID" msprop:Generator_ColumnVarNameInTable="columnVAT_INVOICE_ID" msprop:Generator_ColumnPropNameInRow="VAT_INVOICE_ID" msprop:Generator_ColumnPropNameInTable="VAT_INVOICE_IDColumn" msprop:Generator_UserColumnName="VAT_INVOICE_ID" type="xs:int" minOccurs="0" />
              <xs:element name="LAST_UPDATE" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE" msprop:Generator_ColumnPropNameInTable="LAST_UPDATEColumn" msprop:Generator_UserColumnName="LAST_UPDATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="LAST_UPDATE_USER" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE_USER" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE_USER" msprop:Generator_ColumnPropNameInTable="LAST_UPDATE_USERColumn" msprop:Generator_UserColumnName="LAST_UPDATE_USER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PID" msprop:Generator_ColumnVarNameInTable="columnPID" msprop:Generator_ColumnPropNameInRow="PID" msprop:Generator_ColumnPropNameInTable="PIDColumn" msprop:Generator_UserColumnName="PID" type="xs:int" minOccurs="0" />
              <xs:element name="NSI_PRODUCT_STATE_ID" msprop:Generator_ColumnVarNameInTable="columnNSI_PRODUCT_STATE_ID" msprop:Generator_ColumnPropNameInRow="NSI_PRODUCT_STATE_ID" msprop:Generator_ColumnPropNameInTable="NSI_PRODUCT_STATE_IDColumn" msprop:Generator_UserColumnName="NSI_PRODUCT_STATE_ID" type="xs:int" minOccurs="0" />
              <xs:element name="DIRECT_NUMBER" msprop:Generator_ColumnVarNameInTable="columnDIRECT_NUMBER" msprop:Generator_ColumnPropNameInRow="DIRECT_NUMBER" msprop:Generator_ColumnPropNameInTable="DIRECT_NUMBERColumn" msprop:Generator_UserColumnName="DIRECT_NUMBER" type="xs:int" minOccurs="0" />
              <xs:element name="GUILD_BILL_NUMBER" msprop:Generator_ColumnVarNameInTable="columnGUILD_BILL_NUMBER" msprop:Generator_ColumnPropNameInRow="GUILD_BILL_NUMBER" msprop:Generator_ColumnPropNameInTable="GUILD_BILL_NUMBERColumn" msprop:Generator_UserColumnName="GUILD_BILL_NUMBER" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="VIEW_SEARCH_INVOICE_IN" msprop:Generator_UserTableName="VIEW_SEARCH_INVOICE_IN" msprop:Generator_RowEvArgName="VIEW_SEARCH_INVOICE_INRowChangeEvent" msprop:Generator_TableVarName="tableVIEW_SEARCH_INVOICE_IN" msprop:Generator_TablePropName="VIEW_SEARCH_INVOICE_IN" msprop:Generator_RowDeletingName="VIEW_SEARCH_INVOICE_INRowDeleting" msprop:Generator_RowChangingName="VIEW_SEARCH_INVOICE_INRowChanging" msprop:Generator_RowDeletedName="VIEW_SEARCH_INVOICE_INRowDeleted" msprop:Generator_RowEvHandlerName="VIEW_SEARCH_INVOICE_INRowChangeEventHandler" msprop:Generator_TableClassName="VIEW_SEARCH_INVOICE_INDataTable" msprop:Generator_RowChangedName="VIEW_SEARCH_INVOICE_INRowChanged" msprop:Generator_RowClassName="VIEW_SEARCH_INVOICE_INRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="NUMBER" msprop:Generator_ColumnVarNameInTable="columnNUMBER" msprop:Generator_ColumnPropNameInRow="NUMBER" msprop:Generator_ColumnPropNameInTable="NUMBERColumn" msprop:Generator_UserColumnName="NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="DATE" msprop:Generator_ColumnVarNameInTable="columnDATE" msprop:Generator_ColumnPropNameInRow="DATE" msprop:Generator_ColumnPropNameInTable="DATEColumn" msprop:Generator_UserColumnName="DATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="REG_NUMBER" msprop:Generator_ColumnVarNameInTable="columnREG_NUMBER" msprop:Generator_ColumnPropNameInRow="REG_NUMBER" msprop:Generator_ColumnPropNameInTable="REG_NUMBERColumn" msprop:Generator_UserColumnName="REG_NUMBER" type="xs:int" minOccurs="0" />
              <xs:element name="SUM" msprop:Generator_ColumnVarNameInTable="columnSUM" msprop:Generator_ColumnPropNameInRow="SUM" msprop:Generator_ColumnPropNameInTable="SUMColumn" msprop:Generator_UserColumnName="SUM" type="xs:decimal" minOccurs="0" />
              <xs:element name="SHORT_NAME_CURRENCY" msprop:Generator_ColumnVarNameInTable="columnSHORT_NAME_CURRENCY" msprop:Generator_ColumnPropNameInRow="SHORT_NAME_CURRENCY" msprop:Generator_ColumnPropNameInTable="SHORT_NAME_CURRENCYColumn" msprop:Generator_UserColumnName="SHORT_NAME_CURRENCY" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="SHORT_NAME_ORG" msprop:Generator_ColumnVarNameInTable="columnSHORT_NAME_ORG" msprop:Generator_ColumnPropNameInRow="SHORT_NAME_ORG" msprop:Generator_ColumnPropNameInTable="SHORT_NAME_ORGColumn" msprop:Generator_UserColumnName="SHORT_NAME_ORG" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NSI_ORGANIZATION_ID" msprop:Generator_ColumnVarNameInTable="columnNSI_ORGANIZATION_ID" msprop:Generator_ColumnPropNameInRow="NSI_ORGANIZATION_ID" msprop:Generator_ColumnPropNameInTable="NSI_ORGANIZATION_IDColumn" msprop:Generator_UserColumnName="NSI_ORGANIZATION_ID" type="xs:int" minOccurs="0" />
              <xs:element name="NSI_CONTRACT_ID" msprop:Generator_ColumnVarNameInTable="columnNSI_CONTRACT_ID" msprop:Generator_ColumnPropNameInRow="NSI_CONTRACT_ID" msprop:Generator_ColumnPropNameInTable="NSI_CONTRACT_IDColumn" msprop:Generator_UserColumnName="NSI_CONTRACT_ID" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="VIEW_SEARCH_CONTRACT" msprop:Generator_TableClassName="VIEW_SEARCH_CONTRACTDataTable" msprop:Generator_TableVarName="tableVIEW_SEARCH_CONTRACT" msprop:Generator_RowChangedName="VIEW_SEARCH_CONTRACTRowChanged" msprop:Generator_TablePropName="VIEW_SEARCH_CONTRACT" msprop:Generator_RowDeletingName="VIEW_SEARCH_CONTRACTRowDeleting" msprop:Generator_RowChangingName="VIEW_SEARCH_CONTRACTRowChanging" msprop:Generator_RowEvHandlerName="VIEW_SEARCH_CONTRACTRowChangeEventHandler" msprop:Generator_RowDeletedName="VIEW_SEARCH_CONTRACTRowDeleted" msprop:Generator_RowClassName="VIEW_SEARCH_CONTRACTRow" msprop:Generator_UserTableName="VIEW_SEARCH_CONTRACT" msprop:Generator_RowEvArgName="VIEW_SEARCH_CONTRACTRowChangeEvent">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="NUMBER" msprop:Generator_ColumnVarNameInTable="columnNUMBER" msprop:Generator_ColumnPropNameInRow="NUMBER" msprop:Generator_ColumnPropNameInTable="NUMBERColumn" msprop:Generator_UserColumnName="NUMBER">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="START_DATE" msprop:Generator_ColumnVarNameInTable="columnSTART_DATE" msprop:Generator_ColumnPropNameInRow="START_DATE" msprop:Generator_ColumnPropNameInTable="START_DATEColumn" msprop:Generator_UserColumnName="START_DATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="END_DATE" msprop:Generator_ColumnVarNameInTable="columnEND_DATE" msprop:Generator_ColumnPropNameInRow="END_DATE" msprop:Generator_ColumnPropNameInTable="END_DATEColumn" msprop:Generator_UserColumnName="END_DATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="TYPE_DOC" msprop:Generator_ColumnVarNameInTable="columnTYPE_DOC" msprop:Generator_ColumnPropNameInRow="TYPE_DOC" msprop:Generator_ColumnPropNameInTable="TYPE_DOCColumn" msprop:Generator_UserColumnName="TYPE_DOC" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="SHORT_NAME" msprop:Generator_ColumnVarNameInTable="columnSHORT_NAME" msprop:Generator_ColumnPropNameInRow="SHORT_NAME" msprop:Generator_ColumnPropNameInTable="SHORT_NAMEColumn" msprop:Generator_UserColumnName="SHORT_NAME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NSI_ORGANIZATION_ID" msprop:Generator_ColumnVarNameInTable="columnNSI_ORGANIZATION_ID" msprop:Generator_ColumnPropNameInRow="NSI_ORGANIZATION_ID" msprop:Generator_ColumnPropNameInTable="NSI_ORGANIZATION_IDColumn" msprop:Generator_UserColumnName="NSI_ORGANIZATION_ID" type="xs:int" minOccurs="0" />
              <xs:element name="PID" msprop:Generator_ColumnVarNameInTable="columnPID" msprop:Generator_ColumnPropNameInRow="PID" msprop:Generator_ColumnPropNameInTable="PIDColumn" msprop:Generator_UserColumnName="PID" type="xs:int" minOccurs="0" />
              <xs:element name="PARENT_CONTRACT_ID" msprop:Generator_ColumnVarNameInTable="columnPARENT_CONTRACT_ID" msprop:Generator_ColumnPropNameInRow="PARENT_CONTRACT_ID" msprop:Generator_ColumnPropNameInTable="PARENT_CONTRACT_IDColumn" msprop:Generator_UserColumnName="PARENT_CONTRACT_ID" type="xs:int" minOccurs="0" />
              <xs:element name="PROD_GROUPS" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnPROD_GROUPS" msprop:Generator_ColumnPropNameInRow="PROD_GROUPS" msprop:Generator_ColumnPropNameInTable="PROD_GROUPSColumn" msprop:Generator_UserColumnName="PROD_GROUPS" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2147483647" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="PRODUCT_UNIT_BY_CPSTAGES" msprop:Generator_TableClassName="PRODUCT_UNIT_BY_CPSTAGESDataTable" msprop:Generator_TableVarName="tablePRODUCT_UNIT_BY_CPSTAGES" msprop:Generator_RowChangedName="PRODUCT_UNIT_BY_CPSTAGESRowChanged" msprop:Generator_TablePropName="PRODUCT_UNIT_BY_CPSTAGES" msprop:Generator_RowDeletingName="PRODUCT_UNIT_BY_CPSTAGESRowDeleting" msprop:Generator_RowChangingName="PRODUCT_UNIT_BY_CPSTAGESRowChanging" msprop:Generator_RowEvHandlerName="PRODUCT_UNIT_BY_CPSTAGESRowChangeEventHandler" msprop:Generator_RowDeletedName="PRODUCT_UNIT_BY_CPSTAGESRowDeleted" msprop:Generator_RowClassName="PRODUCT_UNIT_BY_CPSTAGESRow" msprop:Generator_UserTableName="PRODUCT_UNIT_BY_CPSTAGES" msprop:Generator_RowEvArgName="PRODUCT_UNIT_BY_CPSTAGESRowChangeEvent">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="NAME" msprop:Generator_ColumnVarNameInTable="columnNAME" msprop:Generator_ColumnPropNameInRow="NAME" msprop:Generator_ColumnPropNameInTable="NAMEColumn" msprop:Generator_UserColumnName="NAME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="CP_STAGE_ID" msprop:Generator_ColumnVarNameInTable="columnCP_STAGE_ID" msprop:Generator_ColumnPropNameInRow="CP_STAGE_ID" msprop:Generator_ColumnPropNameInTable="CP_STAGE_IDColumn" msprop:Generator_UserColumnName="CP_STAGE_ID" type="xs:int" minOccurs="0" />
              <xs:element name="COUNT" msprop:Generator_ColumnVarNameInTable="columnCOUNT" msprop:Generator_ColumnPropNameInRow="COUNT" msprop:Generator_ColumnPropNameInTable="COUNTColumn" msprop:Generator_UserColumnName="COUNT" type="xs:int" minOccurs="0" />
              <xs:element name="NSI_METER_NAME" msprop:Generator_ColumnVarNameInTable="columnNSI_METER_NAME" msprop:Generator_ColumnPropNameInRow="NSI_METER_NAME" msprop:Generator_ColumnPropNameInTable="NSI_METER_NAMEColumn" msprop:Generator_UserColumnName="NSI_METER_NAME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NSI_PRODUCT_ID" msprop:nullValue="-1" msprop:Generator_ColumnPropNameInRow="NSI_PRODUCT_ID" msprop:Generator_ColumnVarNameInTable="columnNSI_PRODUCT_ID" msprop:Generator_ColumnPropNameInTable="NSI_PRODUCT_IDColumn" msprop:Generator_UserColumnName="NSI_PRODUCT_ID" type="xs:int" minOccurs="0" />
              <xs:element name="TYPE" msprop:Generator_ColumnVarNameInTable="columnTYPE" msprop:Generator_ColumnPropNameInRow="TYPE" msprop:Generator_ColumnPropNameInTable="TYPEColumn" msprop:Generator_UserColumnName="TYPE" type="xs:boolean" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="View_SEARCH_CALENDAR_PLAN" msprop:Generator_TableClassName="View_SEARCH_CALENDAR_PLANDataTable" msprop:Generator_TableVarName="tableView_SEARCH_CALENDAR_PLAN" msprop:Generator_RowChangedName="View_SEARCH_CALENDAR_PLANRowChanged" msprop:Generator_TablePropName="View_SEARCH_CALENDAR_PLAN" msprop:Generator_RowDeletingName="View_SEARCH_CALENDAR_PLANRowDeleting" msprop:Generator_RowChangingName="View_SEARCH_CALENDAR_PLANRowChanging" msprop:Generator_RowEvHandlerName="View_SEARCH_CALENDAR_PLANRowChangeEventHandler" msprop:Generator_RowDeletedName="View_SEARCH_CALENDAR_PLANRowDeleted" msprop:Generator_RowClassName="View_SEARCH_CALENDAR_PLANRow" msprop:Generator_UserTableName="View_SEARCH_CALENDAR_PLAN" msprop:Generator_RowEvArgName="View_SEARCH_CALENDAR_PLANRowChangeEvent">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="NUMBER" msprop:Generator_ColumnVarNameInTable="columnNUMBER" msprop:Generator_ColumnPropNameInRow="NUMBER" msprop:Generator_ColumnPropNameInTable="NUMBERColumn" msprop:Generator_UserColumnName="NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="START_DATE" msprop:Generator_ColumnVarNameInTable="columnSTART_DATE" msprop:Generator_ColumnPropNameInRow="START_DATE" msprop:Generator_ColumnPropNameInTable="START_DATEColumn" msprop:Generator_UserColumnName="START_DATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="END_DATE" msprop:Generator_ColumnVarNameInTable="columnEND_DATE" msprop:Generator_ColumnPropNameInRow="END_DATE" msprop:Generator_ColumnPropNameInTable="END_DATEColumn" msprop:Generator_UserColumnName="END_DATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="CONTRACT_ID" msprop:Generator_ColumnVarNameInTable="columnCONTRACT_ID" msprop:Generator_ColumnPropNameInRow="CONTRACT_ID" msprop:Generator_ColumnPropNameInTable="CONTRACT_IDColumn" msprop:Generator_UserColumnName="CONTRACT_ID" type="xs:int" minOccurs="0" />
              <xs:element name="PID" msprop:Generator_ColumnVarNameInTable="columnPID" msprop:Generator_ColumnPropNameInRow="PID" msprop:Generator_ColumnPropNameInTable="PIDColumn" msprop:Generator_UserColumnName="PID" type="xs:int" minOccurs="0" />
              <xs:element name="CONTRACT_NUMBER" msprop:Generator_ColumnVarNameInTable="columnCONTRACT_NUMBER" msprop:Generator_ColumnPropNameInRow="CONTRACT_NUMBER" msprop:Generator_ColumnPropNameInTable="CONTRACT_NUMBERColumn" msprop:Generator_UserColumnName="CONTRACT_NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="CONTRACT_TYPE_DOC" msprop:Generator_ColumnVarNameInTable="columnCONTRACT_TYPE_DOC" msprop:Generator_ColumnPropNameInRow="CONTRACT_TYPE_DOC" msprop:Generator_ColumnPropNameInTable="CONTRACT_TYPE_DOCColumn" msprop:Generator_UserColumnName="CONTRACT_TYPE_DOC" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NSI_ORG_NAME" msprop:Generator_ColumnVarNameInTable="columnNSI_ORG_NAME" msprop:Generator_ColumnPropNameInRow="NSI_ORG_NAME" msprop:Generator_ColumnPropNameInTable="NSI_ORG_NAMEColumn" msprop:Generator_UserColumnName="NSI_ORG_NAME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PROD_GROUPS" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnPROD_GROUPS" msprop:Generator_ColumnPropNameInRow="PROD_GROUPS" msprop:Generator_ColumnPropNameInTable="PROD_GROUPSColumn" msprop:Generator_UserColumnName="PROD_GROUPS" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2147483647" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="ViewSearchProductUnit" msprop:Generator_TableClassName="ViewSearchProductUnitDataTable" msprop:Generator_TableVarName="tableViewSearchProductUnit" msprop:Generator_RowChangedName="ViewSearchProductUnitRowChanged" msprop:Generator_TablePropName="ViewSearchProductUnit" msprop:Generator_RowDeletingName="ViewSearchProductUnitRowDeleting" msprop:Generator_RowChangingName="ViewSearchProductUnitRowChanging" msprop:Generator_RowEvHandlerName="ViewSearchProductUnitRowChangeEventHandler" msprop:Generator_RowDeletedName="ViewSearchProductUnitRowDeleted" msprop:Generator_RowClassName="ViewSearchProductUnitRow" msprop:Generator_UserTableName="ViewSearchProductUnit" msprop:Generator_RowEvArgName="ViewSearchProductUnitRowChangeEvent">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="PRODUCT_UNIT_ID" msprop:Generator_ColumnVarNameInTable="columnPRODUCT_UNIT_ID" msprop:Generator_ColumnPropNameInRow="PRODUCT_UNIT_ID" msprop:Generator_ColumnPropNameInTable="PRODUCT_UNIT_IDColumn" msprop:Generator_UserColumnName="PRODUCT_UNIT_ID" type="xs:int" />
              <xs:element name="PRODUCT_UNIT_TYPE" msprop:Generator_ColumnVarNameInTable="columnPRODUCT_UNIT_TYPE" msprop:Generator_ColumnPropNameInRow="PRODUCT_UNIT_TYPE" msprop:Generator_ColumnPropNameInTable="PRODUCT_UNIT_TYPEColumn" msprop:Generator_UserColumnName="PRODUCT_UNIT_TYPE" type="xs:boolean" minOccurs="0" />
              <xs:element name="NSI_PRODUCT_ID" msprop:Generator_ColumnVarNameInTable="columnNSI_PRODUCT_ID" msprop:Generator_ColumnPropNameInRow="NSI_PRODUCT_ID" msprop:Generator_ColumnPropNameInTable="NSI_PRODUCT_IDColumn" msprop:Generator_UserColumnName="NSI_PRODUCT_ID" type="xs:int" minOccurs="0" />
              <xs:element name="PRODUCT_UNIT_NAME" msprop:Generator_ColumnVarNameInTable="columnPRODUCT_UNIT_NAME" msprop:Generator_ColumnPropNameInRow="PRODUCT_UNIT_NAME" msprop:Generator_ColumnPropNameInTable="PRODUCT_UNIT_NAMEColumn" msprop:Generator_UserColumnName="PRODUCT_UNIT_NAME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PRODUCT_UNIT_PID" msprop:Generator_ColumnVarNameInTable="columnPRODUCT_UNIT_PID" msprop:Generator_ColumnPropNameInRow="PRODUCT_UNIT_PID" msprop:Generator_ColumnPropNameInTable="PRODUCT_UNIT_PIDColumn" msprop:Generator_UserColumnName="PRODUCT_UNIT_PID" type="xs:int" minOccurs="0" />
              <xs:element name="METER_NAME" msprop:Generator_ColumnVarNameInTable="columnMETER_NAME" msprop:Generator_ColumnPropNameInRow="METER_NAME" msprop:Generator_ColumnPropNameInTable="METER_NAMEColumn" msprop:Generator_UserColumnName="METER_NAME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="METER_ID" msprop:Generator_ColumnVarNameInTable="columnMETER_ID" msprop:Generator_ColumnPropNameInRow="METER_ID" msprop:Generator_ColumnPropNameInTable="METER_IDColumn" msprop:Generator_UserColumnName="METER_ID" type="xs:int" minOccurs="0" />
              <xs:element name="CP_STAGE_ID" msprop:Generator_ColumnVarNameInTable="columnCP_STAGE_ID" msprop:Generator_ColumnPropNameInRow="CP_STAGE_ID" msprop:Generator_ColumnPropNameInTable="CP_STAGE_IDColumn" msprop:Generator_UserColumnName="CP_STAGE_ID" type="xs:int" />
              <xs:element name="VAT_INVOICE_ID" msprop:Generator_ColumnVarNameInTable="columnVAT_INVOICE_ID" msprop:Generator_ColumnPropNameInRow="VAT_INVOICE_ID" msprop:Generator_ColumnPropNameInTable="VAT_INVOICE_IDColumn" msprop:Generator_UserColumnName="VAT_INVOICE_ID" type="xs:int" minOccurs="0" />
              <xs:element name="COUNT" msprop:Generator_ColumnVarNameInTable="columnCOUNT" msprop:Generator_ColumnPropNameInRow="COUNT" msprop:Generator_ColumnPropNameInTable="COUNTColumn" msprop:Generator_UserColumnName="COUNT" type="xs:int" minOccurs="0" />
              <xs:element name="DIRECT_NUMBER" msprop:Generator_ColumnVarNameInTable="columnDIRECT_NUMBER" msprop:Generator_ColumnPropNameInRow="DIRECT_NUMBER" msprop:Generator_ColumnPropNameInTable="DIRECT_NUMBERColumn" msprop:Generator_UserColumnName="DIRECT_NUMBER" type="xs:int" minOccurs="0" />
              <xs:element name="GUILD_BILL_NUMBER" msprop:Generator_ColumnVarNameInTable="columnGUILD_BILL_NUMBER" msprop:Generator_ColumnPropNameInRow="GUILD_BILL_NUMBER" msprop:Generator_ColumnPropNameInTable="GUILD_BILL_NUMBERColumn" msprop:Generator_UserColumnName="GUILD_BILL_NUMBER" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="AGGR_PRODUCT_COST" msprop:Generator_TableClassName="AGGR_PRODUCT_COSTDataTable" msprop:Generator_TableVarName="tableAGGR_PRODUCT_COST" msprop:Generator_RowChangedName="AGGR_PRODUCT_COSTRowChanged" msprop:Generator_TablePropName="AGGR_PRODUCT_COST" msprop:Generator_RowDeletingName="AGGR_PRODUCT_COSTRowDeleting" msprop:Generator_RowChangingName="AGGR_PRODUCT_COSTRowChanging" msprop:Generator_RowEvHandlerName="AGGR_PRODUCT_COSTRowChangeEventHandler" msprop:Generator_RowDeletedName="AGGR_PRODUCT_COSTRowDeleted" msprop:Generator_RowClassName="AGGR_PRODUCT_COSTRow" msprop:Generator_UserTableName="AGGR_PRODUCT_COST" msprop:Generator_RowEvArgName="AGGR_PRODUCT_COSTRowChangeEvent">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="NAME" msprop:Generator_ColumnVarNameInTable="columnNAME" msprop:Generator_ColumnPropNameInRow="NAME" msprop:Generator_ColumnPropNameInTable="NAMEColumn" msprop:Generator_UserColumnName="NAME">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="COUNT" msprop:Generator_ColumnVarNameInTable="columnCOUNT" msprop:Generator_ColumnPropNameInRow="COUNT" msprop:Generator_ColumnPropNameInTable="COUNTColumn" msprop:Generator_UserColumnName="COUNT" type="xs:int" minOccurs="0" />
              <xs:element name="NSI_METER_NAME" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="NSI_METER_NAME" msprop:Generator_ColumnVarNameInTable="columnNSI_METER_NAME" msprop:Generator_ColumnPropNameInTable="NSI_METER_NAMEColumn" msprop:Generator_UserColumnName="NSI_METER_NAME" default="" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="COST" msprop:Generator_ColumnVarNameInTable="columnCOST" msprop:Generator_ColumnPropNameInRow="COST" msprop:Generator_ColumnPropNameInTable="COSTColumn" msprop:Generator_UserColumnName="COST" type="xs:decimal" minOccurs="0" />
              <xs:element name="CP_STAGE_NUM" msprop:Generator_ColumnVarNameInTable="columnCP_STAGE_NUM" msprop:Generator_ColumnPropNameInRow="CP_STAGE_NUM" msprop:Generator_ColumnPropNameInTable="CP_STAGE_NUMColumn" msprop:Generator_UserColumnName="CP_STAGE_NUM" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="CP_STAGE_NAME" msprop:Generator_ColumnVarNameInTable="columnCP_STAGE_NAME" msprop:Generator_ColumnPropNameInRow="CP_STAGE_NAME" msprop:Generator_ColumnPropNameInTable="CP_STAGE_NAMEColumn" msprop:Generator_UserColumnName="CP_STAGE_NAME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="CP_STAGE_SDATE" msprop:Generator_ColumnVarNameInTable="columnCP_STAGE_SDATE" msprop:Generator_ColumnPropNameInRow="CP_STAGE_SDATE" msprop:Generator_ColumnPropNameInTable="CP_STAGE_SDATEColumn" msprop:Generator_UserColumnName="CP_STAGE_SDATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="CP_STAGE_EDATE" msprop:Generator_ColumnVarNameInTable="columnCP_STAGE_EDATE" msprop:Generator_ColumnPropNameInRow="CP_STAGE_EDATE" msprop:Generator_ColumnPropNameInTable="CP_STAGE_EDATEColumn" msprop:Generator_UserColumnName="CP_STAGE_EDATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="CP_STAGE_ID" msprop:Generator_ColumnVarNameInTable="columnCP_STAGE_ID" msprop:Generator_ColumnPropNameInRow="CP_STAGE_ID" msprop:Generator_ColumnPropNameInTable="CP_STAGE_IDColumn" msprop:Generator_UserColumnName="CP_STAGE_ID" type="xs:int" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="VIEW_SEARCH_COST_PROTOCOL" msprop:Generator_TableClassName="VIEW_SEARCH_COST_PROTOCOLDataTable" msprop:Generator_TableVarName="tableVIEW_SEARCH_COST_PROTOCOL" msprop:Generator_RowChangedName="VIEW_SEARCH_COST_PROTOCOLRowChanged" msprop:Generator_TablePropName="VIEW_SEARCH_COST_PROTOCOL" msprop:Generator_RowDeletingName="VIEW_SEARCH_COST_PROTOCOLRowDeleting" msprop:Generator_RowChangingName="VIEW_SEARCH_COST_PROTOCOLRowChanging" msprop:Generator_RowEvHandlerName="VIEW_SEARCH_COST_PROTOCOLRowChangeEventHandler" msprop:Generator_RowDeletedName="VIEW_SEARCH_COST_PROTOCOLRowDeleted" msprop:Generator_RowClassName="VIEW_SEARCH_COST_PROTOCOLRow" msprop:Generator_UserTableName="VIEW_SEARCH_COST_PROTOCOL" msprop:Generator_RowEvArgName="VIEW_SEARCH_COST_PROTOCOLRowChangeEvent">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="NUMBER" msprop:Generator_ColumnVarNameInTable="columnNUMBER" msprop:Generator_ColumnPropNameInRow="NUMBER" msprop:Generator_ColumnPropNameInTable="NUMBERColumn" msprop:Generator_UserColumnName="NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="CONTRACT_NUMBER" msprop:Generator_ColumnVarNameInTable="columnCONTRACT_NUMBER" msprop:Generator_ColumnPropNameInRow="CONTRACT_NUMBER" msprop:Generator_ColumnPropNameInTable="CONTRACT_NUMBERColumn" msprop:Generator_UserColumnName="CONTRACT_NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ORG_NAME" msprop:Generator_ColumnVarNameInTable="columnORG_NAME" msprop:Generator_ColumnPropNameInRow="ORG_NAME" msprop:Generator_ColumnPropNameInTable="ORG_NAMEColumn" msprop:Generator_UserColumnName="ORG_NAME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="IS_AGREED" msprop:Generator_ColumnVarNameInTable="columnIS_AGREED" msprop:Generator_ColumnPropNameInRow="IS_AGREED" msprop:Generator_ColumnPropNameInTable="IS_AGREEDColumn" msprop:Generator_UserColumnName="IS_AGREED" type="xs:boolean" minOccurs="0" />
              <xs:element name="PID" msprop:Generator_ColumnVarNameInTable="columnPID" msprop:Generator_ColumnPropNameInRow="PID" msprop:Generator_ColumnPropNameInTable="PIDColumn" msprop:Generator_UserColumnName="PID" type="xs:int" minOccurs="0" />
              <xs:element name="START_DATE" msprop:Generator_ColumnVarNameInTable="columnSTART_DATE" msprop:Generator_ColumnPropNameInRow="START_DATE" msprop:Generator_ColumnPropNameInTable="START_DATEColumn" msprop:Generator_UserColumnName="START_DATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="END_DATE" msprop:Generator_ColumnVarNameInTable="columnEND_DATE" msprop:Generator_ColumnPropNameInRow="END_DATE" msprop:Generator_ColumnPropNameInTable="END_DATEColumn" msprop:Generator_UserColumnName="END_DATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="PROD_GROUPS" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnPROD_GROUPS" msprop:Generator_ColumnPropNameInRow="PROD_GROUPS" msprop:Generator_ColumnPropNameInTable="PROD_GROUPSColumn" msprop:Generator_UserColumnName="PROD_GROUPS" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2147483647" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="VIEW_SEARCH_PU_FOR_COST_PROTOCOL" msprop:Generator_TableClassName="VIEW_SEARCH_PU_FOR_COST_PROTOCOLDataTable" msprop:Generator_TableVarName="tableVIEW_SEARCH_PU_FOR_COST_PROTOCOL" msprop:Generator_RowChangedName="VIEW_SEARCH_PU_FOR_COST_PROTOCOLRowChanged" msprop:Generator_TablePropName="VIEW_SEARCH_PU_FOR_COST_PROTOCOL" msprop:Generator_RowDeletingName="VIEW_SEARCH_PU_FOR_COST_PROTOCOLRowDeleting" msprop:Generator_RowChangingName="VIEW_SEARCH_PU_FOR_COST_PROTOCOLRowChanging" msprop:Generator_RowEvHandlerName="VIEW_SEARCH_PU_FOR_COST_PROTOCOLRowChangeEventHandler" msprop:Generator_RowDeletedName="VIEW_SEARCH_PU_FOR_COST_PROTOCOLRowDeleted" msprop:Generator_RowClassName="VIEW_SEARCH_PU_FOR_COST_PROTOCOLRow" msprop:Generator_UserTableName="VIEW_SEARCH_PU_FOR_COST_PROTOCOL" msprop:Generator_RowEvArgName="VIEW_SEARCH_PU_FOR_COST_PROTOCOLRowChangeEvent">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="NAME" msprop:Generator_ColumnVarNameInTable="columnNAME" msprop:Generator_ColumnPropNameInRow="NAME" msprop:Generator_ColumnPropNameInTable="NAMEColumn" msprop:Generator_UserColumnName="NAME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="TYPE" msprop:Generator_ColumnVarNameInTable="columnTYPE" msprop:Generator_ColumnPropNameInRow="TYPE" msprop:Generator_ColumnPropNameInTable="TYPEColumn" msprop:Generator_UserColumnName="TYPE" type="xs:boolean" minOccurs="0" />
              <xs:element name="COUNT" msprop:Generator_ColumnVarNameInTable="columnCOUNT" msprop:Generator_ColumnPropNameInRow="COUNT" msprop:Generator_ColumnPropNameInTable="COUNTColumn" msprop:Generator_UserColumnName="COUNT" type="xs:int" minOccurs="0" />
              <xs:element name="METER" msprop:nullValue="_null" msprop:Generator_ColumnPropNameInRow="METER" msprop:Generator_ColumnVarNameInTable="columnMETER" msprop:Generator_ColumnPropNameInTable="METERColumn" msprop:Generator_UserColumnName="METER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="CAL_P_NAME" msprop:Generator_ColumnVarNameInTable="columnCAL_P_NAME" msprop:Generator_ColumnPropNameInRow="CAL_P_NAME" msprop:Generator_ColumnPropNameInTable="CAL_P_NAMEColumn" msprop:Generator_UserColumnName="CAL_P_NAME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="CAL_P_NUMBER" msprop:Generator_ColumnVarNameInTable="columnCAL_P_NUMBER" msprop:Generator_ColumnPropNameInRow="CAL_P_NUMBER" msprop:Generator_ColumnPropNameInTable="CAL_P_NUMBERColumn" msprop:Generator_UserColumnName="CAL_P_NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="CAL_P_START_DATE" msprop:Generator_ColumnVarNameInTable="columnCAL_P_START_DATE" msprop:Generator_ColumnPropNameInRow="CAL_P_START_DATE" msprop:Generator_ColumnPropNameInTable="CAL_P_START_DATEColumn" msprop:Generator_UserColumnName="CAL_P_START_DATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="CAL_P_END_DATE" msprop:Generator_ColumnVarNameInTable="columnCAL_P_END_DATE" msprop:Generator_ColumnPropNameInRow="CAL_P_END_DATE" msprop:Generator_ColumnPropNameInTable="CAL_P_END_DATEColumn" msprop:Generator_UserColumnName="CAL_P_END_DATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="PID" msprop:Generator_ColumnVarNameInTable="columnPID" msprop:Generator_ColumnPropNameInRow="PID" msprop:Generator_ColumnPropNameInTable="PIDColumn" msprop:Generator_UserColumnName="PID" type="xs:int" minOccurs="0" />
              <xs:element name="COUNT_TMP" msprop:Generator_ColumnVarNameInTable="columnCOUNT_TMP" msprop:Generator_ColumnPropNameInRow="COUNT_TMP" msprop:Generator_ColumnPropNameInTable="COUNT_TMPColumn" msprop:Generator_UserColumnName="COUNT_TMP" type="xs:int" minOccurs="0" />
              <xs:element name="CP_STAGE_ID" msprop:Generator_ColumnVarNameInTable="columnCP_STAGE_ID" msprop:Generator_ColumnPropNameInRow="CP_STAGE_ID" msprop:Generator_ColumnPropNameInTable="CP_STAGE_IDColumn" msprop:Generator_UserColumnName="CP_STAGE_ID" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="VIEW_SEARCH_INVOICE_OUT" msprop:Generator_TableClassName="VIEW_SEARCH_INVOICE_OUTDataTable" msprop:Generator_TableVarName="tableVIEW_SEARCH_INVOICE_OUT" msprop:Generator_RowChangedName="VIEW_SEARCH_INVOICE_OUTRowChanged" msprop:Generator_TablePropName="VIEW_SEARCH_INVOICE_OUT" msprop:Generator_RowDeletingName="VIEW_SEARCH_INVOICE_OUTRowDeleting" msprop:Generator_RowChangingName="VIEW_SEARCH_INVOICE_OUTRowChanging" msprop:Generator_RowEvHandlerName="VIEW_SEARCH_INVOICE_OUTRowChangeEventHandler" msprop:Generator_RowDeletedName="VIEW_SEARCH_INVOICE_OUTRowDeleted" msprop:Generator_RowClassName="VIEW_SEARCH_INVOICE_OUTRow" msprop:Generator_UserTableName="VIEW_SEARCH_INVOICE_OUT" msprop:Generator_RowEvArgName="VIEW_SEARCH_INVOICE_OUTRowChangeEvent">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="NUMBER" msprop:Generator_ColumnVarNameInTable="columnNUMBER" msprop:Generator_ColumnPropNameInRow="NUMBER" msprop:Generator_ColumnPropNameInTable="NUMBERColumn" msprop:Generator_UserColumnName="NUMBER">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="DATE" msprop:Generator_ColumnVarNameInTable="columnDATE" msprop:Generator_ColumnPropNameInRow="DATE" msprop:Generator_ColumnPropNameInTable="DATEColumn" msprop:Generator_UserColumnName="DATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="SUM" msprop:Generator_ColumnVarNameInTable="columnSUM" msprop:Generator_ColumnPropNameInRow="SUM" msprop:Generator_ColumnPropNameInTable="SUMColumn" msprop:Generator_UserColumnName="SUM" type="xs:decimal" minOccurs="0" />
              <xs:element name="CONTRACT_NUM" msprop:Generator_ColumnVarNameInTable="columnCONTRACT_NUM" msprop:Generator_ColumnPropNameInRow="CONTRACT_NUM" msprop:Generator_ColumnPropNameInTable="CONTRACT_NUMColumn" msprop:Generator_UserColumnName="CONTRACT_NUM" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NSI_CURRENCY_SHORT_NAME" msprop:Generator_ColumnVarNameInTable="columnNSI_CURRENCY_SHORT_NAME" msprop:Generator_ColumnPropNameInRow="NSI_CURRENCY_SHORT_NAME" msprop:Generator_ColumnPropNameInTable="NSI_CURRENCY_SHORT_NAMEColumn" msprop:Generator_UserColumnName="NSI_CURRENCY_SHORT_NAME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NSI_ORGANIZATION_SHORT_NAME" msprop:Generator_ColumnVarNameInTable="columnNSI_ORGANIZATION_SHORT_NAME" msprop:Generator_ColumnPropNameInRow="NSI_ORGANIZATION_SHORT_NAME" msprop:Generator_ColumnPropNameInTable="NSI_ORGANIZATION_SHORT_NAMEColumn" msprop:Generator_UserColumnName="NSI_ORGANIZATION_SHORT_NAME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NSI_TYPE_OF_ACTIVITY_NAME" msprop:Generator_ColumnVarNameInTable="columnNSI_TYPE_OF_ACTIVITY_NAME" msprop:Generator_ColumnPropNameInRow="NSI_TYPE_OF_ACTIVITY_NAME" msprop:Generator_ColumnPropNameInTable="NSI_TYPE_OF_ACTIVITY_NAMEColumn" msprop:Generator_UserColumnName="NSI_TYPE_OF_ACTIVITY_NAME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PID" msprop:Generator_ColumnVarNameInTable="columnPID" msprop:Generator_ColumnPropNameInRow="PID" msprop:Generator_ColumnPropNameInTable="PIDColumn" msprop:Generator_UserColumnName="PID" type="xs:int" minOccurs="0" />
              <xs:element name="STATE" msprop:Generator_ColumnVarNameInTable="columnSTATE" msprop:Generator_ColumnPropNameInRow="STATE" msprop:Generator_ColumnPropNameInTable="STATEColumn" msprop:Generator_UserColumnName="STATE" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NSI_ORGANIZATION_ID" msprop:Generator_ColumnVarNameInTable="columnNSI_ORGANIZATION_ID" msprop:Generator_ColumnPropNameInRow="NSI_ORGANIZATION_ID" msprop:Generator_ColumnPropNameInTable="NSI_ORGANIZATION_IDColumn" msprop:Generator_UserColumnName="NSI_ORGANIZATION_ID" type="xs:int" minOccurs="0" />
              <xs:element name="PROD_GROUPS" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnPROD_GROUPS" msprop:Generator_ColumnPropNameInRow="PROD_GROUPS" msprop:Generator_ColumnPropNameInTable="PROD_GROUPSColumn" msprop:Generator_UserColumnName="PROD_GROUPS" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2147483647" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="INVOICE_OUT_ITEM_SUM" msprop:Generator_ColumnVarNameInTable="columnINVOICE_OUT_ITEM_SUM" msprop:Generator_ColumnPropNameInRow="INVOICE_OUT_ITEM_SUM" msprop:Generator_ColumnPropNameInTable="INVOICE_OUT_ITEM_SUMColumn" msprop:Generator_UserColumnName="INVOICE_OUT_ITEM_SUM" type="xs:decimal" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="VIEW_PAY_IN_ON_INV_OUT" msprop:Generator_TableClassName="VIEW_PAY_IN_ON_INV_OUTDataTable" msprop:Generator_TableVarName="tableVIEW_PAY_IN_ON_INV_OUT" msprop:Generator_RowChangedName="VIEW_PAY_IN_ON_INV_OUTRowChanged" msprop:Generator_TablePropName="VIEW_PAY_IN_ON_INV_OUT" msprop:Generator_RowDeletingName="VIEW_PAY_IN_ON_INV_OUTRowDeleting" msprop:Generator_RowChangingName="VIEW_PAY_IN_ON_INV_OUTRowChanging" msprop:Generator_RowEvHandlerName="VIEW_PAY_IN_ON_INV_OUTRowChangeEventHandler" msprop:Generator_RowDeletedName="VIEW_PAY_IN_ON_INV_OUTRowDeleted" msprop:Generator_RowClassName="VIEW_PAY_IN_ON_INV_OUTRow" msprop:Generator_UserTableName="VIEW_PAY_IN_ON_INV_OUT" msprop:Generator_RowEvArgName="VIEW_PAY_IN_ON_INV_OUTRowChangeEvent">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="PAYMENT_IN_NUMBER" msprop:Generator_ColumnVarNameInTable="columnPAYMENT_IN_NUMBER" msprop:Generator_ColumnPropNameInRow="PAYMENT_IN_NUMBER" msprop:Generator_ColumnPropNameInTable="PAYMENT_IN_NUMBERColumn" msprop:Generator_UserColumnName="PAYMENT_IN_NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ID" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="PAYMENT_IN_ID" msprop:Generator_ColumnVarNameInTable="columnPAYMENT_IN_ID" msprop:Generator_ColumnPropNameInRow="PAYMENT_IN_ID" msprop:Generator_ColumnPropNameInTable="PAYMENT_IN_IDColumn" msprop:Generator_UserColumnName="PAYMENT_IN_ID" type="xs:int" />
              <xs:element name="INVOICE_OUT_ID" msprop:Generator_ColumnVarNameInTable="columnINVOICE_OUT_ID" msprop:Generator_ColumnPropNameInRow="INVOICE_OUT_ID" msprop:Generator_ColumnPropNameInTable="INVOICE_OUT_IDColumn" msprop:Generator_UserColumnName="INVOICE_OUT_ID" type="xs:int" />
              <xs:element name="SUM_CUR" msprop:nullValue="0" msprop:Generator_ColumnPropNameInRow="SUM_CUR" msprop:Generator_ColumnVarNameInTable="columnSUM_CUR" msprop:Generator_ColumnPropNameInTable="SUM_CURColumn" msprop:Generator_UserColumnName="SUM_CUR" type="xs:decimal" default="0" minOccurs="0" />
              <xs:element name="SUM_RUB" msprop:nullValue="0" msprop:Generator_ColumnPropNameInRow="SUM_RUB" msprop:Generator_ColumnVarNameInTable="columnSUM_RUB" msprop:Generator_ColumnPropNameInTable="SUM_RUBColumn" msprop:Generator_UserColumnName="SUM_RUB" type="xs:decimal" default="0" minOccurs="0" />
              <xs:element name="PID" msprop:Generator_ColumnVarNameInTable="columnPID" msprop:Generator_ColumnPropNameInRow="PID" msprop:Generator_ColumnPropNameInTable="PIDColumn" msprop:Generator_UserColumnName="PID" type="xs:int" minOccurs="0" />
              <xs:element name="PAYMENT_IN_DATE" msprop:Generator_ColumnVarNameInTable="columnPAYMENT_IN_DATE" msprop:Generator_ColumnPropNameInRow="PAYMENT_IN_DATE" msprop:Generator_ColumnPropNameInTable="PAYMENT_IN_DATEColumn" msprop:Generator_UserColumnName="PAYMENT_IN_DATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="INVOICE_OUT_NUM" msprop:Generator_ColumnVarNameInTable="columnINVOICE_OUT_NUM" msprop:Generator_ColumnPropNameInRow="INVOICE_OUT_NUM" msprop:Generator_ColumnPropNameInTable="INVOICE_OUT_NUMColumn" msprop:Generator_UserColumnName="INVOICE_OUT_NUM" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NSI_CURRENCY_NAME" msprop:Generator_ColumnVarNameInTable="columnNSI_CURRENCY_NAME" msprop:Generator_ColumnPropNameInRow="NSI_CURRENCY_NAME" msprop:Generator_ColumnPropNameInTable="NSI_CURRENCY_NAMEColumn" msprop:Generator_UserColumnName="NSI_CURRENCY_NAME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="GUILD_BILL" msprop:Generator_TableClassName="GUILD_BILLDataTable" msprop:Generator_TableVarName="tableGUILD_BILL" msprop:Generator_RowChangedName="GUILD_BILLRowChanged" msprop:Generator_TablePropName="GUILD_BILL" msprop:Generator_RowDeletingName="GUILD_BILLRowDeleting" msprop:Generator_RowChangingName="GUILD_BILLRowChanging" msprop:Generator_RowEvHandlerName="GUILD_BILLRowChangeEventHandler" msprop:Generator_RowDeletedName="GUILD_BILLRowDeleted" msprop:Generator_RowClassName="GUILD_BILLRow" msprop:Generator_UserTableName="GUILD_BILL" msprop:Generator_RowEvArgName="GUILD_BILLRowChangeEvent">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="NUMBER" msprop:Generator_ColumnVarNameInTable="columnNUMBER" msprop:Generator_ColumnPropNameInRow="NUMBER" msprop:Generator_ColumnPropNameInTable="NUMBERColumn" msprop:Generator_UserColumnName="NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="DATE" msprop:Generator_ColumnVarNameInTable="columnDATE" msprop:Generator_ColumnPropNameInRow="DATE" msprop:Generator_ColumnPropNameInTable="DATEColumn" msprop:Generator_UserColumnName="DATE" type="xs:dateTime" />
              <xs:element name="DESCRIPTION" msprop:Generator_ColumnVarNameInTable="columnDESCRIPTION" msprop:Generator_ColumnPropNameInRow="DESCRIPTION" msprop:Generator_ColumnPropNameInTable="DESCRIPTIONColumn" msprop:Generator_UserColumnName="DESCRIPTION" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2147483647" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="LAST_UPDATE" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE" msprop:Generator_ColumnPropNameInTable="LAST_UPDATEColumn" msprop:Generator_UserColumnName="LAST_UPDATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="LAST_UPDATE_USER" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE_USER" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE_USER" msprop:Generator_ColumnPropNameInTable="LAST_UPDATE_USERColumn" msprop:Generator_UserColumnName="LAST_UPDATE_USER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PID" msprop:Generator_ColumnVarNameInTable="columnPID" msprop:Generator_ColumnPropNameInRow="PID" msprop:Generator_ColumnPropNameInTable="PIDColumn" msprop:Generator_UserColumnName="PID" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="DIRECT" msprop:Generator_TableClassName="DIRECTDataTable" msprop:Generator_TableVarName="tableDIRECT" msprop:Generator_RowChangedName="DIRECTRowChanged" msprop:Generator_TablePropName="DIRECT" msprop:Generator_RowDeletingName="DIRECTRowDeleting" msprop:Generator_RowChangingName="DIRECTRowChanging" msprop:Generator_RowEvHandlerName="DIRECTRowChangeEventHandler" msprop:Generator_RowDeletedName="DIRECTRowDeleted" msprop:Generator_RowClassName="DIRECTRow" msprop:Generator_UserTableName="DIRECT" msprop:Generator_RowEvArgName="DIRECTRowChangeEvent">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="NUMBER" msprop:Generator_ColumnVarNameInTable="columnNUMBER" msprop:Generator_ColumnPropNameInRow="NUMBER" msprop:Generator_ColumnPropNameInTable="NUMBERColumn" msprop:Generator_UserColumnName="NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="DATE" msprop:Generator_ColumnVarNameInTable="columnDATE" msprop:Generator_ColumnPropNameInRow="DATE" msprop:Generator_ColumnPropNameInTable="DATEColumn" msprop:Generator_UserColumnName="DATE" type="xs:dateTime" />
              <xs:element name="DESCRIPTION" msprop:Generator_ColumnVarNameInTable="columnDESCRIPTION" msprop:Generator_ColumnPropNameInRow="DESCRIPTION" msprop:Generator_ColumnPropNameInTable="DESCRIPTIONColumn" msprop:Generator_UserColumnName="DESCRIPTION" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2147483647" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="LAST_UPDATE" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE" msprop:Generator_ColumnPropNameInTable="LAST_UPDATEColumn" msprop:Generator_UserColumnName="LAST_UPDATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="LAST_UPDATE_USER" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE_USER" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE_USER" msprop:Generator_ColumnPropNameInTable="LAST_UPDATE_USERColumn" msprop:Generator_UserColumnName="LAST_UPDATE_USER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PID" msprop:Generator_ColumnVarNameInTable="columnPID" msprop:Generator_ColumnPropNameInRow="PID" msprop:Generator_ColumnPropNameInTable="PIDColumn" msprop:Generator_UserColumnName="PID" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="VIEW_SEARCH_PAYMENT_IN" msprop:Generator_TableClassName="VIEW_SEARCH_PAYMENT_INDataTable" msprop:Generator_TableVarName="tableVIEW_SEARCH_PAYMENT_IN" msprop:Generator_RowChangedName="VIEW_SEARCH_PAYMENT_INRowChanged" msprop:Generator_TablePropName="VIEW_SEARCH_PAYMENT_IN" msprop:Generator_RowDeletingName="VIEW_SEARCH_PAYMENT_INRowDeleting" msprop:Generator_RowChangingName="VIEW_SEARCH_PAYMENT_INRowChanging" msprop:Generator_RowEvHandlerName="VIEW_SEARCH_PAYMENT_INRowChangeEventHandler" msprop:Generator_RowDeletedName="VIEW_SEARCH_PAYMENT_INRowDeleted" msprop:Generator_RowClassName="VIEW_SEARCH_PAYMENT_INRow" msprop:Generator_UserTableName="VIEW_SEARCH_PAYMENT_IN" msprop:Generator_RowEvArgName="VIEW_SEARCH_PAYMENT_INRowChangeEvent">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="NUMBER" msprop:Generator_ColumnVarNameInTable="columnNUMBER" msprop:Generator_ColumnPropNameInRow="NUMBER" msprop:Generator_ColumnPropNameInTable="NUMBERColumn" msprop:Generator_UserColumnName="NUMBER">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="DATE" msprop:Generator_ColumnVarNameInTable="columnDATE" msprop:Generator_ColumnPropNameInRow="DATE" msprop:Generator_ColumnPropNameInTable="DATEColumn" msprop:Generator_UserColumnName="DATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="SUM_RUB" msprop:Generator_ColumnVarNameInTable="columnSUM_RUB" msprop:Generator_ColumnPropNameInRow="SUM_RUB" msprop:Generator_ColumnPropNameInTable="SUM_RUBColumn" msprop:Generator_UserColumnName="SUM_RUB" type="xs:decimal" minOccurs="0" />
              <xs:element name="NSI_ORGANIZATION_NAME" msprop:Generator_ColumnVarNameInTable="columnNSI_ORGANIZATION_NAME" msprop:Generator_ColumnPropNameInRow="NSI_ORGANIZATION_NAME" msprop:Generator_ColumnPropNameInTable="NSI_ORGANIZATION_NAMEColumn" msprop:Generator_UserColumnName="NSI_ORGANIZATION_NAME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NSI_TYPE_OF_ACTIVITY_NAME" msprop:Generator_ColumnVarNameInTable="columnNSI_TYPE_OF_ACTIVITY_NAME" msprop:Generator_ColumnPropNameInRow="NSI_TYPE_OF_ACTIVITY_NAME" msprop:Generator_ColumnPropNameInTable="NSI_TYPE_OF_ACTIVITY_NAMEColumn" msprop:Generator_UserColumnName="NSI_TYPE_OF_ACTIVITY_NAME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="CONTRACT_NUMBER" msprop:Generator_ColumnVarNameInTable="columnCONTRACT_NUMBER" msprop:Generator_ColumnPropNameInRow="CONTRACT_NUMBER" msprop:Generator_ColumnPropNameInTable="CONTRACT_NUMBERColumn" msprop:Generator_UserColumnName="CONTRACT_NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PID" msprop:Generator_ColumnVarNameInTable="columnPID" msprop:Generator_ColumnPropNameInRow="PID" msprop:Generator_ColumnPropNameInTable="PIDColumn" msprop:Generator_UserColumnName="PID" type="xs:int" minOccurs="0" />
              <xs:element name="NSI_ORGANIZATION_ID" msprop:Generator_ColumnVarNameInTable="columnNSI_ORGANIZATION_ID" msprop:Generator_ColumnPropNameInRow="NSI_ORGANIZATION_ID" msprop:Generator_ColumnPropNameInTable="NSI_ORGANIZATION_IDColumn" msprop:Generator_UserColumnName="NSI_ORGANIZATION_ID" type="xs:int" minOccurs="0" />
              <xs:element name="PROD_GROUPS" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnPROD_GROUPS" msprop:Generator_ColumnPropNameInRow="PROD_GROUPS" msprop:Generator_ColumnPropNameInTable="PROD_GROUPSColumn" msprop:Generator_UserColumnName="PROD_GROUPS" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2147483647" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PAYMENT_IN_ITEM_SUM" msprop:Generator_ColumnVarNameInTable="columnPAYMENT_IN_ITEM_SUM" msprop:Generator_ColumnPropNameInRow="PAYMENT_IN_ITEM_SUM" msprop:Generator_ColumnPropNameInTable="PAYMENT_IN_ITEM_SUMColumn" msprop:Generator_UserColumnName="PAYMENT_IN_ITEM_SUM" type="xs:decimal" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="VIEW_SEARCH_P_U_FOR_FORMS" msprop:Generator_TableClassName="VIEW_SEARCH_P_U_FOR_FORMSDataTable" msprop:Generator_TableVarName="tableVIEW_SEARCH_P_U_FOR_FORMS" msprop:Generator_RowChangedName="VIEW_SEARCH_P_U_FOR_FORMSRowChanged" msprop:Generator_TablePropName="VIEW_SEARCH_P_U_FOR_FORMS" msprop:Generator_RowDeletingName="VIEW_SEARCH_P_U_FOR_FORMSRowDeleting" msprop:Generator_RowChangingName="VIEW_SEARCH_P_U_FOR_FORMSRowChanging" msprop:Generator_RowEvHandlerName="VIEW_SEARCH_P_U_FOR_FORMSRowChangeEventHandler" msprop:Generator_RowDeletedName="VIEW_SEARCH_P_U_FOR_FORMSRowDeleted" msprop:Generator_RowClassName="VIEW_SEARCH_P_U_FOR_FORMSRow" msprop:Generator_UserTableName="VIEW_SEARCH_P_U_FOR_FORMS" msprop:Generator_RowEvArgName="VIEW_SEARCH_P_U_FOR_FORMSRowChangeEvent">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="NAME" msprop:Generator_ColumnVarNameInTable="columnNAME" msprop:Generator_ColumnPropNameInRow="NAME" msprop:Generator_ColumnPropNameInTable="NAMEColumn" msprop:Generator_UserColumnName="NAME">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NSI_PRODUCT_STATE_NAME" msprop:Generator_ColumnVarNameInTable="columnNSI_PRODUCT_STATE_NAME" msprop:Generator_ColumnPropNameInRow="NSI_PRODUCT_STATE_NAME" msprop:Generator_ColumnPropNameInTable="NSI_PRODUCT_STATE_NAMEColumn" msprop:Generator_UserColumnName="NSI_PRODUCT_STATE_NAME">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="TYPE" msprop:Generator_ColumnVarNameInTable="columnTYPE" msprop:Generator_ColumnPropNameInRow="TYPE" msprop:Generator_ColumnPropNameInTable="TYPEColumn" msprop:Generator_UserColumnName="TYPE" type="xs:boolean" minOccurs="0" />
              <xs:element name="COST" msprop:Generator_ColumnVarNameInTable="columnCOST" msprop:Generator_ColumnPropNameInRow="COST" msprop:Generator_ColumnPropNameInTable="COSTColumn" msprop:Generator_UserColumnName="COST" type="xs:decimal" minOccurs="0" />
              <xs:element name="INVOICE_IN_SUM" msprop:Generator_ColumnVarNameInTable="columnINVOICE_IN_SUM" msprop:Generator_ColumnPropNameInRow="INVOICE_IN_SUM" msprop:Generator_ColumnPropNameInTable="INVOICE_IN_SUMColumn" msprop:Generator_UserColumnName="INVOICE_IN_SUM" type="xs:decimal" minOccurs="0" />
              <xs:element name="PAYMENT_IN_SUM_CUR" msprop:Generator_ColumnVarNameInTable="columnPAYMENT_IN_SUM_CUR" msprop:Generator_ColumnPropNameInRow="PAYMENT_IN_SUM_CUR" msprop:Generator_ColumnPropNameInTable="PAYMENT_IN_SUM_CURColumn" msprop:Generator_UserColumnName="PAYMENT_IN_SUM_CUR" type="xs:decimal" minOccurs="0" />
              <xs:element name="PAYMENT_IN_SUM_RUB" msprop:Generator_ColumnVarNameInTable="columnPAYMENT_IN_SUM_RUB" msprop:Generator_ColumnPropNameInRow="PAYMENT_IN_SUM_RUB" msprop:Generator_ColumnPropNameInTable="PAYMENT_IN_SUM_RUBColumn" msprop:Generator_UserColumnName="PAYMENT_IN_SUM_RUB" type="xs:decimal" minOccurs="0" />
              <xs:element name="NSI_CURRENCY_NAME" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="NSI_CURRENCY_NAME" msprop:Generator_ColumnVarNameInTable="columnNSI_CURRENCY_NAME" msprop:Generator_ColumnPropNameInTable="NSI_CURRENCY_NAMEColumn" msprop:Generator_UserColumnName="NSI_CURRENCY_NAME" default="">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="COST_PROTOCOL_NUMBER" msprop:Generator_ColumnVarNameInTable="columnCOST_PROTOCOL_NUMBER" msprop:Generator_ColumnPropNameInRow="COST_PROTOCOL_NUMBER" msprop:Generator_ColumnPropNameInTable="COST_PROTOCOL_NUMBERColumn" msprop:Generator_UserColumnName="COST_PROTOCOL_NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="CP_STAGE_ID" msprop:Generator_ColumnVarNameInTable="columnCP_STAGE_ID" msprop:Generator_ColumnPropNameInRow="CP_STAGE_ID" msprop:Generator_ColumnPropNameInTable="CP_STAGE_IDColumn" msprop:Generator_UserColumnName="CP_STAGE_ID" type="xs:int" />
              <xs:element name="CP_STAGE_NUMBER" msprop:Generator_ColumnVarNameInTable="columnCP_STAGE_NUMBER" msprop:Generator_ColumnPropNameInRow="CP_STAGE_NUMBER" msprop:Generator_ColumnPropNameInTable="CP_STAGE_NUMBERColumn" msprop:Generator_UserColumnName="CP_STAGE_NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="CP_STAGE_START_DATE" msprop:Generator_ColumnVarNameInTable="columnCP_STAGE_START_DATE" msprop:Generator_ColumnPropNameInRow="CP_STAGE_START_DATE" msprop:Generator_ColumnPropNameInTable="CP_STAGE_START_DATEColumn" msprop:Generator_UserColumnName="CP_STAGE_START_DATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="CP_STAGE_END_DATE" msprop:Generator_ColumnVarNameInTable="columnCP_STAGE_END_DATE" msprop:Generator_ColumnPropNameInRow="CP_STAGE_END_DATE" msprop:Generator_ColumnPropNameInTable="CP_STAGE_END_DATEColumn" msprop:Generator_UserColumnName="CP_STAGE_END_DATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="PID" msprop:Generator_ColumnVarNameInTable="columnPID" msprop:Generator_ColumnPropNameInRow="PID" msprop:Generator_ColumnPropNameInTable="PIDColumn" msprop:Generator_UserColumnName="PID" type="xs:int" minOccurs="0" />
              <xs:element name="NSI_PRODUCT_STATE_ID" msprop:Generator_ColumnVarNameInTable="columnNSI_PRODUCT_STATE_ID" msprop:Generator_ColumnPropNameInRow="NSI_PRODUCT_STATE_ID" msprop:Generator_ColumnPropNameInTable="NSI_PRODUCT_STATE_IDColumn" msprop:Generator_UserColumnName="NSI_PRODUCT_STATE_ID" type="xs:int" minOccurs="0" />
              <xs:element name="NSI_PRODUCT_ID" msprop:Generator_ColumnVarNameInTable="columnNSI_PRODUCT_ID" msprop:Generator_ColumnPropNameInRow="NSI_PRODUCT_ID" msprop:Generator_ColumnPropNameInTable="NSI_PRODUCT_IDColumn" msprop:Generator_UserColumnName="NSI_PRODUCT_ID" type="xs:int" minOccurs="0" />
              <xs:element name="GUILD_BILL_NUMBER" msprop:Generator_ColumnVarNameInTable="columnGUILD_BILL_NUMBER" msprop:Generator_ColumnPropNameInRow="GUILD_BILL_NUMBER" msprop:Generator_ColumnPropNameInTable="GUILD_BILL_NUMBERColumn" msprop:Generator_UserColumnName="GUILD_BILL_NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="DIRECT_NUMBER" msprop:Generator_ColumnVarNameInTable="columnDIRECT_NUMBER" msprop:Generator_ColumnPropNameInRow="DIRECT_NUMBER" msprop:Generator_ColumnPropNameInTable="DIRECT_NUMBERColumn" msprop:Generator_UserColumnName="DIRECT_NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="DIRECT_NUMBER_ID" msprop:Generator_ColumnVarNameInTable="columnDIRECT_NUMBER_ID" msprop:Generator_ColumnPropNameInRow="DIRECT_NUMBER_ID" msprop:Generator_ColumnPropNameInTable="DIRECT_NUMBER_IDColumn" msprop:Generator_UserColumnName="DIRECT_NUMBER_ID" type="xs:int" minOccurs="0" />
              <xs:element name="GUILD_BILL_NUMBER_ID" msprop:Generator_ColumnVarNameInTable="columnGUILD_BILL_NUMBER_ID" msprop:Generator_ColumnPropNameInRow="GUILD_BILL_NUMBER_ID" msprop:Generator_ColumnPropNameInTable="GUILD_BILL_NUMBER_IDColumn" msprop:Generator_UserColumnName="GUILD_BILL_NUMBER_ID" type="xs:int" minOccurs="0" />
              <xs:element name="VAT_INVOICE_ID" msprop:Generator_ColumnVarNameInTable="columnVAT_INVOICE_ID" msprop:Generator_ColumnPropNameInRow="VAT_INVOICE_ID" msprop:Generator_ColumnPropNameInTable="VAT_INVOICE_IDColumn" msprop:Generator_UserColumnName="VAT_INVOICE_ID" type="xs:int" minOccurs="0" />
              <xs:element name="PAY_PER" msdata:ReadOnly="true" msprop:nullValue="0" msprop:Generator_ColumnPropNameInRow="PAY_PER" msprop:Generator_ColumnVarNameInTable="columnPAY_PER" msprop:Generator_ColumnPropNameInTable="PAY_PERColumn" msprop:Generator_UserColumnName="PAY_PER" type="xs:decimal" default="0" minOccurs="0" />
              <xs:element name="VAT_INVOICE_NUMBER" msprop:Generator_ColumnVarNameInTable="columnVAT_INVOICE_NUMBER" msprop:Generator_ColumnPropNameInRow="VAT_INVOICE_NUMBER" msprop:Generator_ColumnPropNameInTable="VAT_INVOICE_NUMBERColumn" msprop:Generator_UserColumnName="VAT_INVOICE_NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NSI_METER_NAME" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="NSI_METER_NAME" msprop:Generator_ColumnVarNameInTable="columnNSI_METER_NAME" msprop:Generator_ColumnPropNameInTable="NSI_METER_NAMEColumn" msprop:Generator_UserColumnName="NSI_METER_NAME" default="" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="VAT_INVOICE_DATE" msprop:Generator_ColumnVarNameInTable="columnVAT_INVOICE_DATE" msprop:Generator_ColumnPropNameInRow="VAT_INVOICE_DATE" msprop:Generator_ColumnPropNameInTable="VAT_INVOICE_DATEColumn" msprop:Generator_UserColumnName="VAT_INVOICE_DATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="PROD_GROUP" msprop:Generator_ColumnVarNameInTable="columnPROD_GROUP" msprop:Generator_ColumnPropNameInRow="PROD_GROUP" msprop:Generator_ColumnPropNameInTable="PROD_GROUPColumn" msprop:Generator_UserColumnName="PROD_GROUP" type="xs:int" minOccurs="0" />
              <xs:element name="VAT_INVOICE_DATE1" msdata:ReadOnly="true" msdata:Caption="VAT_INVOICE_DATE" msprop:Generator_ColumnVarNameInTable="columnVAT_INVOICE_DATE1" msprop:Generator_ColumnPropNameInRow="VAT_INVOICE_DATE1" msprop:Generator_ColumnPropNameInTable="VAT_INVOICE_DATE1Column" msprop:Generator_UserColumnName="VAT_INVOICE_DATE1" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="30" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NSI_PROD_GROUP_NAME" msprop:Generator_ColumnVarNameInTable="columnNSI_PROD_GROUP_NAME" msprop:Generator_ColumnPropNameInRow="NSI_PROD_GROUP_NAME" msprop:Generator_ColumnPropNameInTable="NSI_PROD_GROUP_NAMEColumn" msprop:Generator_UserColumnName="NSI_PROD_GROUP_NAME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="N_DRAWING" msprop:Generator_ColumnVarNameInTable="columnN_DRAWING" msprop:Generator_ColumnPropNameInRow="N_DRAWING" msprop:Generator_ColumnPropNameInTable="N_DRAWINGColumn" msprop:Generator_UserColumnName="N_DRAWING" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="INVOICE_OUT_NUMBER" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnINVOICE_OUT_NUMBER" msprop:Generator_ColumnPropNameInRow="INVOICE_OUT_NUMBER" msprop:Generator_ColumnPropNameInTable="INVOICE_OUT_NUMBERColumn" msprop:Generator_UserColumnName="INVOICE_OUT_NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2147483647" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="CALENDAR_PLAN_NUMBER" msprop:Generator_ColumnVarNameInTable="columnCALENDAR_PLAN_NUMBER" msprop:Generator_ColumnPropNameInRow="CALENDAR_PLAN_NUMBER" msprop:Generator_ColumnPropNameInTable="CALENDAR_PLAN_NUMBERColumn" msprop:Generator_UserColumnName="CALENDAR_PLAN_NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="AGGR_PU_PAY_IN" msprop:Generator_TableClassName="AGGR_PU_PAY_INDataTable" msprop:Generator_TableVarName="tableAGGR_PU_PAY_IN" msprop:Generator_RowChangedName="AGGR_PU_PAY_INRowChanged" msprop:Generator_TablePropName="AGGR_PU_PAY_IN" msprop:Generator_RowDeletingName="AGGR_PU_PAY_INRowDeleting" msprop:Generator_RowChangingName="AGGR_PU_PAY_INRowChanging" msprop:Generator_RowEvHandlerName="AGGR_PU_PAY_INRowChangeEventHandler" msprop:Generator_RowDeletedName="AGGR_PU_PAY_INRowDeleted" msprop:Generator_RowClassName="AGGR_PU_PAY_INRow" msprop:Generator_UserTableName="AGGR_PU_PAY_IN" msprop:Generator_RowEvArgName="AGGR_PU_PAY_INRowChangeEvent">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="NAME" msprop:Generator_ColumnVarNameInTable="columnNAME" msprop:Generator_ColumnPropNameInRow="NAME" msprop:Generator_ColumnPropNameInTable="NAMEColumn" msprop:Generator_UserColumnName="NAME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="COUNT" msprop:nullValue="0" msprop:Generator_ColumnPropNameInRow="COUNT" msprop:Generator_ColumnVarNameInTable="columnCOUNT" msprop:Generator_ColumnPropNameInTable="COUNTColumn" msprop:Generator_UserColumnName="COUNT" type="xs:int" default="0" minOccurs="0" />
              <xs:element name="NSI_METER_NAME" msprop:Generator_ColumnVarNameInTable="columnNSI_METER_NAME" msprop:Generator_ColumnPropNameInRow="NSI_METER_NAME" msprop:Generator_ColumnPropNameInTable="NSI_METER_NAMEColumn" msprop:Generator_UserColumnName="NSI_METER_NAME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PAY_SUM_CUR" msprop:nullValue="0" msprop:Generator_ColumnPropNameInRow="PAY_SUM_CUR" msprop:Generator_ColumnVarNameInTable="columnPAY_SUM_CUR" msprop:Generator_ColumnPropNameInTable="PAY_SUM_CURColumn" msprop:Generator_UserColumnName="PAY_SUM_CUR" type="xs:decimal" default="0" minOccurs="0" />
              <xs:element name="PAY_SUM_RUB" msprop:nullValue="0" msprop:Generator_ColumnPropNameInRow="PAY_SUM_RUB" msprop:Generator_ColumnVarNameInTable="columnPAY_SUM_RUB" msprop:Generator_ColumnPropNameInTable="PAY_SUM_RUBColumn" msprop:Generator_UserColumnName="PAY_SUM_RUB" type="xs:decimal" default="0" minOccurs="0" />
              <xs:element name="NSI_PRODUCT_ID" msprop:Generator_ColumnVarNameInTable="columnNSI_PRODUCT_ID" msprop:Generator_ColumnPropNameInRow="NSI_PRODUCT_ID" msprop:Generator_ColumnPropNameInTable="NSI_PRODUCT_IDColumn" msprop:Generator_UserColumnName="NSI_PRODUCT_ID" type="xs:int" minOccurs="0" />
              <xs:element name="PAYMENT_IN_ID" msprop:Generator_ColumnVarNameInTable="columnPAYMENT_IN_ID" msprop:Generator_ColumnPropNameInRow="PAYMENT_IN_ID" msprop:Generator_ColumnPropNameInTable="PAYMENT_IN_IDColumn" msprop:Generator_UserColumnName="PAYMENT_IN_ID" type="xs:int" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="VIEW_PAY_IN_ITEM" msprop:Generator_TableClassName="VIEW_PAY_IN_ITEMDataTable" msprop:Generator_TableVarName="tableVIEW_PAY_IN_ITEM" msprop:Generator_RowChangedName="VIEW_PAY_IN_ITEMRowChanged" msprop:Generator_TablePropName="VIEW_PAY_IN_ITEM" msprop:Generator_RowDeletingName="VIEW_PAY_IN_ITEMRowDeleting" msprop:Generator_RowChangingName="VIEW_PAY_IN_ITEMRowChanging" msprop:Generator_RowEvHandlerName="VIEW_PAY_IN_ITEMRowChangeEventHandler" msprop:Generator_RowDeletedName="VIEW_PAY_IN_ITEMRowDeleted" msprop:Generator_RowClassName="VIEW_PAY_IN_ITEMRow" msprop:Generator_UserTableName="VIEW_PAY_IN_ITEM" msprop:Generator_RowEvArgName="VIEW_PAY_IN_ITEMRowChangeEvent">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="PRODUCT_UNIT_ID" msprop:Generator_ColumnVarNameInTable="columnPRODUCT_UNIT_ID" msprop:Generator_ColumnPropNameInRow="PRODUCT_UNIT_ID" msprop:Generator_ColumnPropNameInTable="PRODUCT_UNIT_IDColumn" msprop:Generator_UserColumnName="PRODUCT_UNIT_ID" type="xs:int" />
              <xs:element name="PAYMENT_IN_ID" msprop:Generator_ColumnVarNameInTable="columnPAYMENT_IN_ID" msprop:Generator_ColumnPropNameInRow="PAYMENT_IN_ID" msprop:Generator_ColumnPropNameInTable="PAYMENT_IN_IDColumn" msprop:Generator_UserColumnName="PAYMENT_IN_ID" type="xs:int" />
              <xs:element name="SUM_CUR" msprop:nullValue="0" msprop:Generator_ColumnPropNameInRow="SUM_CUR" msprop:Generator_ColumnVarNameInTable="columnSUM_CUR" msprop:Generator_ColumnPropNameInTable="SUM_CURColumn" msprop:Generator_UserColumnName="SUM_CUR" type="xs:decimal" default="0" minOccurs="0" />
              <xs:element name="SUM_RUB" msprop:nullValue="0" msprop:Generator_ColumnPropNameInRow="SUM_RUB" msprop:Generator_ColumnVarNameInTable="columnSUM_RUB" msprop:Generator_ColumnPropNameInTable="SUM_RUBColumn" msprop:Generator_UserColumnName="SUM_RUB" type="xs:decimal" default="0" minOccurs="0" />
              <xs:element name="PRODUCT_UNIT_NAME" msprop:Generator_ColumnVarNameInTable="columnPRODUCT_UNIT_NAME" msprop:Generator_ColumnPropNameInRow="PRODUCT_UNIT_NAME" msprop:Generator_ColumnPropNameInTable="PRODUCT_UNIT_NAMEColumn" msprop:Generator_UserColumnName="PRODUCT_UNIT_NAME">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NSI_PRODUCT_STATE_NAME" msprop:Generator_ColumnVarNameInTable="columnNSI_PRODUCT_STATE_NAME" msprop:Generator_ColumnPropNameInRow="NSI_PRODUCT_STATE_NAME" msprop:Generator_ColumnPropNameInTable="NSI_PRODUCT_STATE_NAMEColumn" msprop:Generator_UserColumnName="NSI_PRODUCT_STATE_NAME">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PRODUCT_UNIT_TYPE" msprop:Generator_ColumnVarNameInTable="columnPRODUCT_UNIT_TYPE" msprop:Generator_ColumnPropNameInRow="PRODUCT_UNIT_TYPE" msprop:Generator_ColumnPropNameInTable="PRODUCT_UNIT_TYPEColumn" msprop:Generator_UserColumnName="PRODUCT_UNIT_TYPE" type="xs:boolean" minOccurs="0" />
              <xs:element name="PRODUCT_UNIT_COST" msprop:Generator_ColumnVarNameInTable="columnPRODUCT_UNIT_COST" msprop:Generator_ColumnPropNameInRow="PRODUCT_UNIT_COST" msprop:Generator_ColumnPropNameInTable="PRODUCT_UNIT_COSTColumn" msprop:Generator_UserColumnName="PRODUCT_UNIT_COST" type="xs:decimal" minOccurs="0" />
              <xs:element name="INVOICE_IN_SUM" msprop:Generator_ColumnVarNameInTable="columnINVOICE_IN_SUM" msprop:Generator_ColumnPropNameInRow="INVOICE_IN_SUM" msprop:Generator_ColumnPropNameInTable="INVOICE_IN_SUMColumn" msprop:Generator_UserColumnName="INVOICE_IN_SUM" type="xs:decimal" minOccurs="0" />
              <xs:element name="NSI_CURRENCY_NAME" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="NSI_CURRENCY_NAME" msprop:Generator_ColumnVarNameInTable="columnNSI_CURRENCY_NAME" msprop:Generator_ColumnPropNameInTable="NSI_CURRENCY_NAMEColumn" msprop:Generator_UserColumnName="NSI_CURRENCY_NAME" default="">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="COST_PROTOCOL_NUMBER" msprop:Generator_ColumnVarNameInTable="columnCOST_PROTOCOL_NUMBER" msprop:Generator_ColumnPropNameInRow="COST_PROTOCOL_NUMBER" msprop:Generator_ColumnPropNameInTable="COST_PROTOCOL_NUMBERColumn" msprop:Generator_UserColumnName="COST_PROTOCOL_NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="CP_STAGE_ID" msprop:Generator_ColumnVarNameInTable="columnCP_STAGE_ID" msprop:Generator_ColumnPropNameInRow="CP_STAGE_ID" msprop:Generator_ColumnPropNameInTable="CP_STAGE_IDColumn" msprop:Generator_UserColumnName="CP_STAGE_ID" type="xs:int" />
              <xs:element name="CP_STAGE_NUMBER" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnCP_STAGE_NUMBER" msprop:Generator_ColumnPropNameInRow="CP_STAGE_NUMBER" msprop:Generator_ColumnPropNameInTable="CP_STAGE_NUMBERColumn" msprop:Generator_UserColumnName="CP_STAGE_NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="103" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="CP_STAGE_START_DATE" msprop:Generator_ColumnVarNameInTable="columnCP_STAGE_START_DATE" msprop:Generator_ColumnPropNameInRow="CP_STAGE_START_DATE" msprop:Generator_ColumnPropNameInTable="CP_STAGE_START_DATEColumn" msprop:Generator_UserColumnName="CP_STAGE_START_DATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="CP_STAGE_END_DATE" msprop:Generator_ColumnVarNameInTable="columnCP_STAGE_END_DATE" msprop:Generator_ColumnPropNameInRow="CP_STAGE_END_DATE" msprop:Generator_ColumnPropNameInTable="CP_STAGE_END_DATEColumn" msprop:Generator_UserColumnName="CP_STAGE_END_DATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="NSI_PRODUCT_STATE_ID" msprop:Generator_ColumnVarNameInTable="columnNSI_PRODUCT_STATE_ID" msprop:Generator_ColumnPropNameInRow="NSI_PRODUCT_STATE_ID" msprop:Generator_ColumnPropNameInTable="NSI_PRODUCT_STATE_IDColumn" msprop:Generator_UserColumnName="NSI_PRODUCT_STATE_ID" type="xs:int" minOccurs="0" />
              <xs:element name="NSI_PRODUCT_ID" msprop:nullValue="-1" msprop:Generator_ColumnPropNameInRow="NSI_PRODUCT_ID" msprop:Generator_ColumnVarNameInTable="columnNSI_PRODUCT_ID" msprop:Generator_ColumnPropNameInTable="NSI_PRODUCT_IDColumn" msprop:Generator_UserColumnName="NSI_PRODUCT_ID" type="xs:int" default="-1" minOccurs="0" />
              <xs:element name="GUILD_BILL_NUMBER" msprop:Generator_ColumnVarNameInTable="columnGUILD_BILL_NUMBER" msprop:Generator_ColumnPropNameInRow="GUILD_BILL_NUMBER" msprop:Generator_ColumnPropNameInTable="GUILD_BILL_NUMBERColumn" msprop:Generator_UserColumnName="GUILD_BILL_NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="DIRECT_NUMBER" msprop:Generator_ColumnVarNameInTable="columnDIRECT_NUMBER" msprop:Generator_ColumnPropNameInRow="DIRECT_NUMBER" msprop:Generator_ColumnPropNameInTable="DIRECT_NUMBERColumn" msprop:Generator_UserColumnName="DIRECT_NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="DIRECT_NUMBER_ID" msprop:Generator_ColumnVarNameInTable="columnDIRECT_NUMBER_ID" msprop:Generator_ColumnPropNameInRow="DIRECT_NUMBER_ID" msprop:Generator_ColumnPropNameInTable="DIRECT_NUMBER_IDColumn" msprop:Generator_UserColumnName="DIRECT_NUMBER_ID" type="xs:int" minOccurs="0" />
              <xs:element name="GUILD_BILL_NUMBER_ID" msprop:Generator_ColumnVarNameInTable="columnGUILD_BILL_NUMBER_ID" msprop:Generator_ColumnPropNameInRow="GUILD_BILL_NUMBER_ID" msprop:Generator_ColumnPropNameInTable="GUILD_BILL_NUMBER_IDColumn" msprop:Generator_UserColumnName="GUILD_BILL_NUMBER_ID" type="xs:int" minOccurs="0" />
              <xs:element name="VAT_INVOICE_ID" msprop:Generator_ColumnVarNameInTable="columnVAT_INVOICE_ID" msprop:Generator_ColumnPropNameInRow="VAT_INVOICE_ID" msprop:Generator_ColumnPropNameInTable="VAT_INVOICE_IDColumn" msprop:Generator_UserColumnName="VAT_INVOICE_ID" type="xs:int" minOccurs="0" />
              <xs:element name="PAY_PER" msprop:nullValue="0" msprop:Generator_ColumnPropNameInRow="PAY_PER" msprop:Generator_ColumnVarNameInTable="columnPAY_PER" msprop:Generator_ColumnPropNameInTable="PAY_PERColumn" msprop:Generator_UserColumnName="PAY_PER" type="xs:decimal" default="0" minOccurs="0" />
              <xs:element name="PID" msprop:Generator_ColumnVarNameInTable="columnPID" msprop:Generator_ColumnPropNameInRow="PID" msprop:Generator_ColumnPropNameInTable="PIDColumn" msprop:Generator_UserColumnName="PID" type="xs:int" minOccurs="0" />
              <xs:element name="VAT_INVOICE_NUMBER" msprop:Generator_ColumnVarNameInTable="columnVAT_INVOICE_NUMBER" msprop:Generator_ColumnPropNameInRow="VAT_INVOICE_NUMBER" msprop:Generator_ColumnPropNameInTable="VAT_INVOICE_NUMBERColumn" msprop:Generator_UserColumnName="VAT_INVOICE_NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NSI_METER_NAME" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="NSI_METER_NAME" msprop:Generator_ColumnVarNameInTable="columnNSI_METER_NAME" msprop:Generator_ColumnPropNameInTable="NSI_METER_NAMEColumn" msprop:Generator_UserColumnName="NSI_METER_NAME" default="" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="VAT_INVOICE_DATE" msprop:Generator_ColumnVarNameInTable="columnVAT_INVOICE_DATE" msprop:Generator_ColumnPropNameInRow="VAT_INVOICE_DATE" msprop:Generator_ColumnPropNameInTable="VAT_INVOICE_DATEColumn" msprop:Generator_UserColumnName="VAT_INVOICE_DATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="VAT_INVOICE_DATE1" msdata:Caption="VAT_INVOICE_DATE" msprop:Generator_ColumnVarNameInTable="columnVAT_INVOICE_DATE1" msprop:Generator_ColumnPropNameInRow="VAT_INVOICE_DATE1" msprop:Generator_ColumnPropNameInTable="VAT_INVOICE_DATE1Column" msprop:Generator_UserColumnName="VAT_INVOICE_DATE1" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="30" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="INVOICE_OUT_NUMBER" msprop:Generator_ColumnVarNameInTable="columnINVOICE_OUT_NUMBER" msprop:Generator_ColumnPropNameInRow="INVOICE_OUT_NUMBER" msprop:Generator_ColumnPropNameInTable="INVOICE_OUT_NUMBERColumn" msprop:Generator_UserColumnName="INVOICE_OUT_NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2147483647" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PROD_GROUP_NAME" msprop:Generator_ColumnVarNameInTable="columnPROD_GROUP_NAME" msprop:Generator_ColumnPropNameInRow="PROD_GROUP_NAME" msprop:Generator_ColumnPropNameInTable="PROD_GROUP_NAMEColumn" msprop:Generator_UserColumnName="PROD_GROUP_NAME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="N_DRAWING" msprop:Generator_ColumnVarNameInTable="columnN_DRAWING" msprop:Generator_ColumnPropNameInRow="N_DRAWING" msprop:Generator_ColumnPropNameInTable="N_DRAWINGColumn" msprop:Generator_UserColumnName="N_DRAWING" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="CALENDAR_PLAN_NUMBER" msprop:Generator_ColumnVarNameInTable="columnCALENDAR_PLAN_NUMBER" msprop:Generator_ColumnPropNameInRow="CALENDAR_PLAN_NUMBER" msprop:Generator_ColumnPropNameInTable="CALENDAR_PLAN_NUMBERColumn" msprop:Generator_UserColumnName="CALENDAR_PLAN_NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="AGGR_PU_INV_OUT" msprop:Generator_TableClassName="AGGR_PU_INV_OUTDataTable" msprop:Generator_TableVarName="tableAGGR_PU_INV_OUT" msprop:Generator_RowChangedName="AGGR_PU_INV_OUTRowChanged" msprop:Generator_TablePropName="AGGR_PU_INV_OUT" msprop:Generator_RowDeletingName="AGGR_PU_INV_OUTRowDeleting" msprop:Generator_RowChangingName="AGGR_PU_INV_OUTRowChanging" msprop:Generator_RowEvHandlerName="AGGR_PU_INV_OUTRowChangeEventHandler" msprop:Generator_RowDeletedName="AGGR_PU_INV_OUTRowDeleted" msprop:Generator_RowClassName="AGGR_PU_INV_OUTRow" msprop:Generator_UserTableName="AGGR_PU_INV_OUT" msprop:Generator_RowEvArgName="AGGR_PU_INV_OUTRowChangeEvent">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="PRODUCT_UNIT_NAME" msprop:Generator_ColumnVarNameInTable="columnPRODUCT_UNIT_NAME" msprop:Generator_ColumnPropNameInRow="PRODUCT_UNIT_NAME" msprop:Generator_ColumnPropNameInTable="PRODUCT_UNIT_NAMEColumn" msprop:Generator_UserColumnName="PRODUCT_UNIT_NAME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="COUNT" msprop:nullValue="0" msprop:Generator_ColumnPropNameInRow="COUNT" msprop:Generator_ColumnVarNameInTable="columnCOUNT" msprop:Generator_ColumnPropNameInTable="COUNTColumn" msprop:Generator_UserColumnName="COUNT" type="xs:int" default="0" minOccurs="0" />
              <xs:element name="NSI_METER_NAME" msprop:Generator_ColumnVarNameInTable="columnNSI_METER_NAME" msprop:Generator_ColumnPropNameInRow="NSI_METER_NAME" msprop:Generator_ColumnPropNameInTable="NSI_METER_NAMEColumn" msprop:Generator_UserColumnName="NSI_METER_NAME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="INV_SUM" msprop:nullValue="0" msprop:Generator_ColumnPropNameInRow="INV_SUM" msprop:Generator_ColumnVarNameInTable="columnINV_SUM" msprop:Generator_ColumnPropNameInTable="INV_SUMColumn" msprop:Generator_UserColumnName="INV_SUM" type="xs:decimal" default="0" minOccurs="0" />
              <xs:element name="NSI_PRODUCT_ID" msprop:Generator_ColumnVarNameInTable="columnNSI_PRODUCT_ID" msprop:Generator_ColumnPropNameInRow="NSI_PRODUCT_ID" msprop:Generator_ColumnPropNameInTable="NSI_PRODUCT_IDColumn" msprop:Generator_UserColumnName="NSI_PRODUCT_ID" type="xs:int" minOccurs="0" />
              <xs:element name="INVOICE_OUT_ID" msprop:Generator_ColumnVarNameInTable="columnINVOICE_OUT_ID" msprop:Generator_ColumnPropNameInRow="INVOICE_OUT_ID" msprop:Generator_ColumnPropNameInTable="INVOICE_OUT_IDColumn" msprop:Generator_UserColumnName="INVOICE_OUT_ID" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="VIEW_INV_OUT_ITEM" msprop:Generator_TableClassName="VIEW_INV_OUT_ITEMDataTable" msprop:Generator_TableVarName="tableVIEW_INV_OUT_ITEM" msprop:Generator_RowChangedName="VIEW_INV_OUT_ITEMRowChanged" msprop:Generator_TablePropName="VIEW_INV_OUT_ITEM" msprop:Generator_RowDeletingName="VIEW_INV_OUT_ITEMRowDeleting" msprop:Generator_RowChangingName="VIEW_INV_OUT_ITEMRowChanging" msprop:Generator_RowEvHandlerName="VIEW_INV_OUT_ITEMRowChangeEventHandler" msprop:Generator_RowDeletedName="VIEW_INV_OUT_ITEMRowDeleted" msprop:Generator_RowClassName="VIEW_INV_OUT_ITEMRow" msprop:Generator_UserTableName="VIEW_INV_OUT_ITEM" msprop:Generator_RowEvArgName="VIEW_INV_OUT_ITEMRowChangeEvent">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="PRODUCT_UNIT_ID" msprop:Generator_ColumnVarNameInTable="columnPRODUCT_UNIT_ID" msprop:Generator_ColumnPropNameInRow="PRODUCT_UNIT_ID" msprop:Generator_ColumnPropNameInTable="PRODUCT_UNIT_IDColumn" msprop:Generator_UserColumnName="PRODUCT_UNIT_ID" type="xs:int" minOccurs="0" />
              <xs:element name="INVOICE_OUT_ID" msprop:Generator_ColumnVarNameInTable="columnINVOICE_OUT_ID" msprop:Generator_ColumnPropNameInRow="INVOICE_OUT_ID" msprop:Generator_ColumnPropNameInTable="INVOICE_OUT_IDColumn" msprop:Generator_UserColumnName="INVOICE_OUT_ID" type="xs:int" minOccurs="0" />
              <xs:element name="SUM" msprop:nullValue="0" msprop:Generator_ColumnPropNameInRow="SUM" msprop:Generator_ColumnVarNameInTable="columnSUM" msprop:Generator_ColumnPropNameInTable="SUMColumn" msprop:Generator_UserColumnName="SUM" type="xs:decimal" default="0" minOccurs="0" />
              <xs:element name="PID" msprop:Generator_ColumnVarNameInTable="columnPID" msprop:Generator_ColumnPropNameInRow="PID" msprop:Generator_ColumnPropNameInTable="PIDColumn" msprop:Generator_UserColumnName="PID" type="xs:int" minOccurs="0" />
              <xs:element name="PRODUCT_UNIT_NAME" msprop:Generator_ColumnVarNameInTable="columnPRODUCT_UNIT_NAME" msprop:Generator_ColumnPropNameInRow="PRODUCT_UNIT_NAME" msprop:Generator_ColumnPropNameInTable="PRODUCT_UNIT_NAMEColumn" msprop:Generator_UserColumnName="PRODUCT_UNIT_NAME">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NSI_PRODUCT_STATE_NAME" msprop:Generator_ColumnVarNameInTable="columnNSI_PRODUCT_STATE_NAME" msprop:Generator_ColumnPropNameInRow="NSI_PRODUCT_STATE_NAME" msprop:Generator_ColumnPropNameInTable="NSI_PRODUCT_STATE_NAMEColumn" msprop:Generator_UserColumnName="NSI_PRODUCT_STATE_NAME">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PRODUCT_UNIT_TYPE" msprop:Generator_ColumnVarNameInTable="columnPRODUCT_UNIT_TYPE" msprop:Generator_ColumnPropNameInRow="PRODUCT_UNIT_TYPE" msprop:Generator_ColumnPropNameInTable="PRODUCT_UNIT_TYPEColumn" msprop:Generator_UserColumnName="PRODUCT_UNIT_TYPE" type="xs:boolean" minOccurs="0" />
              <xs:element name="PRODUCT_UNIT_COST" msprop:Generator_ColumnVarNameInTable="columnPRODUCT_UNIT_COST" msprop:Generator_ColumnPropNameInRow="PRODUCT_UNIT_COST" msprop:Generator_ColumnPropNameInTable="PRODUCT_UNIT_COSTColumn" msprop:Generator_UserColumnName="PRODUCT_UNIT_COST" type="xs:decimal" minOccurs="0" />
              <xs:element name="INVOICE_IN_SUM" msprop:Generator_ColumnVarNameInTable="columnINVOICE_IN_SUM" msprop:Generator_ColumnPropNameInRow="INVOICE_IN_SUM" msprop:Generator_ColumnPropNameInTable="INVOICE_IN_SUMColumn" msprop:Generator_UserColumnName="INVOICE_IN_SUM" type="xs:decimal" minOccurs="0" />
              <xs:element name="NSI_CURRENCY_NAME" msprop:Generator_ColumnVarNameInTable="columnNSI_CURRENCY_NAME" msprop:Generator_ColumnPropNameInRow="NSI_CURRENCY_NAME" msprop:Generator_ColumnPropNameInTable="NSI_CURRENCY_NAMEColumn" msprop:Generator_UserColumnName="NSI_CURRENCY_NAME">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="COST_PROTOCOL_NUMBER" msprop:Generator_ColumnVarNameInTable="columnCOST_PROTOCOL_NUMBER" msprop:Generator_ColumnPropNameInRow="COST_PROTOCOL_NUMBER" msprop:Generator_ColumnPropNameInTable="COST_PROTOCOL_NUMBERColumn" msprop:Generator_UserColumnName="COST_PROTOCOL_NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="CP_STAGE_ID" msprop:Generator_ColumnVarNameInTable="columnCP_STAGE_ID" msprop:Generator_ColumnPropNameInRow="CP_STAGE_ID" msprop:Generator_ColumnPropNameInTable="CP_STAGE_IDColumn" msprop:Generator_UserColumnName="CP_STAGE_ID" type="xs:int" />
              <xs:element name="CP_STAGE_NUMBER" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnCP_STAGE_NUMBER" msprop:Generator_ColumnPropNameInRow="CP_STAGE_NUMBER" msprop:Generator_ColumnPropNameInTable="CP_STAGE_NUMBERColumn" msprop:Generator_UserColumnName="CP_STAGE_NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="CP_STAGE_START_DATE" msprop:Generator_ColumnVarNameInTable="columnCP_STAGE_START_DATE" msprop:Generator_ColumnPropNameInRow="CP_STAGE_START_DATE" msprop:Generator_ColumnPropNameInTable="CP_STAGE_START_DATEColumn" msprop:Generator_UserColumnName="CP_STAGE_START_DATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="CP_STAGE_END_DATE" msprop:Generator_ColumnVarNameInTable="columnCP_STAGE_END_DATE" msprop:Generator_ColumnPropNameInRow="CP_STAGE_END_DATE" msprop:Generator_ColumnPropNameInTable="CP_STAGE_END_DATEColumn" msprop:Generator_UserColumnName="CP_STAGE_END_DATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="NSI_PRODUCT_STATE_ID" msprop:Generator_ColumnVarNameInTable="columnNSI_PRODUCT_STATE_ID" msprop:Generator_ColumnPropNameInRow="NSI_PRODUCT_STATE_ID" msprop:Generator_ColumnPropNameInTable="NSI_PRODUCT_STATE_IDColumn" msprop:Generator_UserColumnName="NSI_PRODUCT_STATE_ID" type="xs:int" minOccurs="0" />
              <xs:element name="NSI_PRODUCT_ID" msprop:nullValue="-1" msprop:Generator_ColumnPropNameInRow="NSI_PRODUCT_ID" msprop:Generator_ColumnVarNameInTable="columnNSI_PRODUCT_ID" msprop:Generator_ColumnPropNameInTable="NSI_PRODUCT_IDColumn" msprop:Generator_UserColumnName="NSI_PRODUCT_ID" type="xs:int" default="-1" minOccurs="0" />
              <xs:element name="GUILD_BILL_NUMBER" msprop:Generator_ColumnVarNameInTable="columnGUILD_BILL_NUMBER" msprop:Generator_ColumnPropNameInRow="GUILD_BILL_NUMBER" msprop:Generator_ColumnPropNameInTable="GUILD_BILL_NUMBERColumn" msprop:Generator_UserColumnName="GUILD_BILL_NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="DIRECT_NUMBER" msprop:Generator_ColumnVarNameInTable="columnDIRECT_NUMBER" msprop:Generator_ColumnPropNameInRow="DIRECT_NUMBER" msprop:Generator_ColumnPropNameInTable="DIRECT_NUMBERColumn" msprop:Generator_UserColumnName="DIRECT_NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="DIRECT_NUMBER_ID" msprop:Generator_ColumnVarNameInTable="columnDIRECT_NUMBER_ID" msprop:Generator_ColumnPropNameInRow="DIRECT_NUMBER_ID" msprop:Generator_ColumnPropNameInTable="DIRECT_NUMBER_IDColumn" msprop:Generator_UserColumnName="DIRECT_NUMBER_ID" type="xs:int" minOccurs="0" />
              <xs:element name="GUILD_BILL_NUMBER_ID" msprop:Generator_ColumnVarNameInTable="columnGUILD_BILL_NUMBER_ID" msprop:Generator_ColumnPropNameInRow="GUILD_BILL_NUMBER_ID" msprop:Generator_ColumnPropNameInTable="GUILD_BILL_NUMBER_IDColumn" msprop:Generator_UserColumnName="GUILD_BILL_NUMBER_ID" type="xs:int" minOccurs="0" />
              <xs:element name="VAT_INVOICE_ID" msprop:Generator_ColumnVarNameInTable="columnVAT_INVOICE_ID" msprop:Generator_ColumnPropNameInRow="VAT_INVOICE_ID" msprop:Generator_ColumnPropNameInTable="VAT_INVOICE_IDColumn" msprop:Generator_UserColumnName="VAT_INVOICE_ID" type="xs:int" minOccurs="0" />
              <xs:element name="VAT_INVOICE_NUMBER" msprop:Generator_ColumnVarNameInTable="columnVAT_INVOICE_NUMBER" msprop:Generator_ColumnPropNameInRow="VAT_INVOICE_NUMBER" msprop:Generator_ColumnPropNameInTable="VAT_INVOICE_NUMBERColumn" msprop:Generator_UserColumnName="VAT_INVOICE_NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NSI_METER_NAME" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="NSI_METER_NAME" msprop:Generator_ColumnVarNameInTable="columnNSI_METER_NAME" msprop:Generator_ColumnPropNameInTable="NSI_METER_NAMEColumn" msprop:Generator_UserColumnName="NSI_METER_NAME" default="" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PAY_PER" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnPAY_PER" msprop:Generator_ColumnPropNameInRow="PAY_PER" msprop:Generator_ColumnPropNameInTable="PAY_PERColumn" msprop:Generator_UserColumnName="PAY_PER" type="xs:decimal" minOccurs="0" />
              <xs:element name="NSI_PROD_GROUP_NAME" msprop:Generator_ColumnVarNameInTable="columnNSI_PROD_GROUP_NAME" msprop:Generator_ColumnPropNameInRow="NSI_PROD_GROUP_NAME" msprop:Generator_ColumnPropNameInTable="NSI_PROD_GROUP_NAMEColumn" msprop:Generator_UserColumnName="NSI_PROD_GROUP_NAME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PROD_GROUP" msprop:Generator_ColumnVarNameInTable="columnPROD_GROUP" msprop:Generator_ColumnPropNameInRow="PROD_GROUP" msprop:Generator_ColumnPropNameInTable="PROD_GROUPColumn" msprop:Generator_UserColumnName="PROD_GROUP" type="xs:int" minOccurs="0" />
              <xs:element name="VAT_INVOICE_DATE" msprop:Generator_ColumnVarNameInTable="columnVAT_INVOICE_DATE" msprop:Generator_ColumnPropNameInRow="VAT_INVOICE_DATE" msprop:Generator_ColumnPropNameInTable="VAT_INVOICE_DATEColumn" msprop:Generator_UserColumnName="VAT_INVOICE_DATE" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="30" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="N_DRAWING" msprop:Generator_ColumnVarNameInTable="columnN_DRAWING" msprop:Generator_ColumnPropNameInRow="N_DRAWING" msprop:Generator_ColumnPropNameInTable="N_DRAWINGColumn" msprop:Generator_UserColumnName="N_DRAWING" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="VIEW_DIRECT_ITEM" msprop:Generator_TableClassName="VIEW_DIRECT_ITEMDataTable" msprop:Generator_TableVarName="tableVIEW_DIRECT_ITEM" msprop:Generator_RowChangedName="VIEW_DIRECT_ITEMRowChanged" msprop:Generator_TablePropName="VIEW_DIRECT_ITEM" msprop:Generator_RowDeletingName="VIEW_DIRECT_ITEMRowDeleting" msprop:Generator_RowChangingName="VIEW_DIRECT_ITEMRowChanging" msprop:Generator_RowEvHandlerName="VIEW_DIRECT_ITEMRowChangeEventHandler" msprop:Generator_RowDeletedName="VIEW_DIRECT_ITEMRowDeleted" msprop:Generator_RowClassName="VIEW_DIRECT_ITEMRow" msprop:Generator_UserTableName="VIEW_DIRECT_ITEM" msprop:Generator_RowEvArgName="VIEW_DIRECT_ITEMRowChangeEvent">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="PRODUCT_UNIT_NAME" msprop:Generator_ColumnVarNameInTable="columnPRODUCT_UNIT_NAME" msprop:Generator_ColumnPropNameInRow="PRODUCT_UNIT_NAME" msprop:Generator_ColumnPropNameInTable="PRODUCT_UNIT_NAMEColumn" msprop:Generator_UserColumnName="PRODUCT_UNIT_NAME">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NSI_PRODUCT_STATE_NAME" msprop:Generator_ColumnVarNameInTable="columnNSI_PRODUCT_STATE_NAME" msprop:Generator_ColumnPropNameInRow="NSI_PRODUCT_STATE_NAME" msprop:Generator_ColumnPropNameInTable="NSI_PRODUCT_STATE_NAMEColumn" msprop:Generator_UserColumnName="NSI_PRODUCT_STATE_NAME">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PRODUCT_UNIT_TYPE" msprop:Generator_ColumnVarNameInTable="columnPRODUCT_UNIT_TYPE" msprop:Generator_ColumnPropNameInRow="PRODUCT_UNIT_TYPE" msprop:Generator_ColumnPropNameInTable="PRODUCT_UNIT_TYPEColumn" msprop:Generator_UserColumnName="PRODUCT_UNIT_TYPE" type="xs:boolean" minOccurs="0" />
              <xs:element name="PRODUCT_UNIT_COST" msprop:Generator_ColumnVarNameInTable="columnPRODUCT_UNIT_COST" msprop:Generator_ColumnPropNameInRow="PRODUCT_UNIT_COST" msprop:Generator_ColumnPropNameInTable="PRODUCT_UNIT_COSTColumn" msprop:Generator_UserColumnName="PRODUCT_UNIT_COST" type="xs:decimal" minOccurs="0" />
              <xs:element name="INVOICE_IN_SUM" msprop:nullValue="0" msprop:Generator_ColumnPropNameInRow="INVOICE_IN_SUM" msprop:Generator_ColumnVarNameInTable="columnINVOICE_IN_SUM" msprop:Generator_ColumnPropNameInTable="INVOICE_IN_SUMColumn" msprop:Generator_UserColumnName="INVOICE_IN_SUM" type="xs:decimal" default="0" minOccurs="0" />
              <xs:element name="NSI_CURRENCY_NAME" msprop:Generator_ColumnVarNameInTable="columnNSI_CURRENCY_NAME" msprop:Generator_ColumnPropNameInRow="NSI_CURRENCY_NAME" msprop:Generator_ColumnPropNameInTable="NSI_CURRENCY_NAMEColumn" msprop:Generator_UserColumnName="NSI_CURRENCY_NAME">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="COST_PROTOCOL_NUMBER" msprop:Generator_ColumnVarNameInTable="columnCOST_PROTOCOL_NUMBER" msprop:Generator_ColumnPropNameInRow="COST_PROTOCOL_NUMBER" msprop:Generator_ColumnPropNameInTable="COST_PROTOCOL_NUMBERColumn" msprop:Generator_UserColumnName="COST_PROTOCOL_NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="CP_STAGE_ID" msprop:Generator_ColumnVarNameInTable="columnCP_STAGE_ID" msprop:Generator_ColumnPropNameInRow="CP_STAGE_ID" msprop:Generator_ColumnPropNameInTable="CP_STAGE_IDColumn" msprop:Generator_UserColumnName="CP_STAGE_ID" type="xs:int" />
              <xs:element name="CP_STAGE_NUMBER" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnCP_STAGE_NUMBER" msprop:Generator_ColumnPropNameInRow="CP_STAGE_NUMBER" msprop:Generator_ColumnPropNameInTable="CP_STAGE_NUMBERColumn" msprop:Generator_UserColumnName="CP_STAGE_NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="103" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="CP_STAGE_START_DATE" msprop:Generator_ColumnVarNameInTable="columnCP_STAGE_START_DATE" msprop:Generator_ColumnPropNameInRow="CP_STAGE_START_DATE" msprop:Generator_ColumnPropNameInTable="CP_STAGE_START_DATEColumn" msprop:Generator_UserColumnName="CP_STAGE_START_DATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="CP_STAGE_END_DATE" msprop:Generator_ColumnVarNameInTable="columnCP_STAGE_END_DATE" msprop:Generator_ColumnPropNameInRow="CP_STAGE_END_DATE" msprop:Generator_ColumnPropNameInTable="CP_STAGE_END_DATEColumn" msprop:Generator_UserColumnName="CP_STAGE_END_DATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="NSI_PRODUCT_STATE_ID" msprop:Generator_ColumnVarNameInTable="columnNSI_PRODUCT_STATE_ID" msprop:Generator_ColumnPropNameInRow="NSI_PRODUCT_STATE_ID" msprop:Generator_ColumnPropNameInTable="NSI_PRODUCT_STATE_IDColumn" msprop:Generator_UserColumnName="NSI_PRODUCT_STATE_ID" type="xs:int" minOccurs="0" />
              <xs:element name="NSI_PRODUCT_ID" msprop:Generator_ColumnVarNameInTable="columnNSI_PRODUCT_ID" msprop:Generator_ColumnPropNameInRow="NSI_PRODUCT_ID" msprop:Generator_ColumnPropNameInTable="NSI_PRODUCT_IDColumn" msprop:Generator_UserColumnName="NSI_PRODUCT_ID" type="xs:int" minOccurs="0" />
              <xs:element name="GUILD_BILL_NUMBER" msprop:Generator_ColumnVarNameInTable="columnGUILD_BILL_NUMBER" msprop:Generator_ColumnPropNameInRow="GUILD_BILL_NUMBER" msprop:Generator_ColumnPropNameInTable="GUILD_BILL_NUMBERColumn" msprop:Generator_UserColumnName="GUILD_BILL_NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="DIRECT_NUMBER" msprop:Generator_ColumnVarNameInTable="columnDIRECT_NUMBER" msprop:Generator_ColumnPropNameInRow="DIRECT_NUMBER" msprop:Generator_ColumnPropNameInTable="DIRECT_NUMBERColumn" msprop:Generator_UserColumnName="DIRECT_NUMBER">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="DIRECT_NUMBER_ID" msprop:Generator_ColumnVarNameInTable="columnDIRECT_NUMBER_ID" msprop:Generator_ColumnPropNameInRow="DIRECT_NUMBER_ID" msprop:Generator_ColumnPropNameInTable="DIRECT_NUMBER_IDColumn" msprop:Generator_UserColumnName="DIRECT_NUMBER_ID" type="xs:int" minOccurs="0" />
              <xs:element name="GUILD_BILL_NUMBER_ID" msprop:Generator_ColumnVarNameInTable="columnGUILD_BILL_NUMBER_ID" msprop:Generator_ColumnPropNameInRow="GUILD_BILL_NUMBER_ID" msprop:Generator_ColumnPropNameInTable="GUILD_BILL_NUMBER_IDColumn" msprop:Generator_UserColumnName="GUILD_BILL_NUMBER_ID" type="xs:int" minOccurs="0" />
              <xs:element name="VAT_INVOICE_ID" msprop:Generator_ColumnVarNameInTable="columnVAT_INVOICE_ID" msprop:Generator_ColumnPropNameInRow="VAT_INVOICE_ID" msprop:Generator_ColumnPropNameInTable="VAT_INVOICE_IDColumn" msprop:Generator_UserColumnName="VAT_INVOICE_ID" type="xs:int" minOccurs="0" />
              <xs:element name="VAT_INVOICE_NUMBER" msprop:Generator_ColumnVarNameInTable="columnVAT_INVOICE_NUMBER" msprop:Generator_ColumnPropNameInRow="VAT_INVOICE_NUMBER" msprop:Generator_ColumnPropNameInTable="VAT_INVOICE_NUMBERColumn" msprop:Generator_UserColumnName="VAT_INVOICE_NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NSI_METER_NAME" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="NSI_METER_NAME" msprop:Generator_ColumnVarNameInTable="columnNSI_METER_NAME" msprop:Generator_ColumnPropNameInTable="NSI_METER_NAMEColumn" msprop:Generator_UserColumnName="NSI_METER_NAME" default="" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PAY_PER" msdata:ReadOnly="true" msprop:nullValue="0" msprop:Generator_ColumnPropNameInRow="PAY_PER" msprop:Generator_ColumnVarNameInTable="columnPAY_PER" msprop:Generator_ColumnPropNameInTable="PAY_PERColumn" msprop:Generator_UserColumnName="PAY_PER" type="xs:decimal" default="0" minOccurs="0" />
              <xs:element name="ID" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="VAT_INVOICE_DATE" msprop:Generator_ColumnVarNameInTable="columnVAT_INVOICE_DATE" msprop:Generator_ColumnPropNameInRow="VAT_INVOICE_DATE" msprop:Generator_ColumnPropNameInTable="VAT_INVOICE_DATEColumn" msprop:Generator_UserColumnName="VAT_INVOICE_DATE" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="30" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="INVOICE_OUT_NUMBER" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnINVOICE_OUT_NUMBER" msprop:Generator_ColumnPropNameInRow="INVOICE_OUT_NUMBER" msprop:Generator_ColumnPropNameInTable="INVOICE_OUT_NUMBERColumn" msprop:Generator_UserColumnName="INVOICE_OUT_NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2147483647" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="VIEW_SEARCH_DIRECT" msprop:Generator_TableClassName="VIEW_SEARCH_DIRECTDataTable" msprop:Generator_TableVarName="tableVIEW_SEARCH_DIRECT" msprop:Generator_RowChangedName="VIEW_SEARCH_DIRECTRowChanged" msprop:Generator_TablePropName="VIEW_SEARCH_DIRECT" msprop:Generator_RowDeletingName="VIEW_SEARCH_DIRECTRowDeleting" msprop:Generator_RowChangingName="VIEW_SEARCH_DIRECTRowChanging" msprop:Generator_RowEvHandlerName="VIEW_SEARCH_DIRECTRowChangeEventHandler" msprop:Generator_RowDeletedName="VIEW_SEARCH_DIRECTRowDeleted" msprop:Generator_RowClassName="VIEW_SEARCH_DIRECTRow" msprop:Generator_UserTableName="VIEW_SEARCH_DIRECT" msprop:Generator_RowEvArgName="VIEW_SEARCH_DIRECTRowChangeEvent">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="CONTRACT_NUM" msprop:Generator_ColumnVarNameInTable="columnCONTRACT_NUM" msprop:Generator_ColumnPropNameInRow="CONTRACT_NUM" msprop:Generator_ColumnPropNameInTable="CONTRACT_NUMColumn" msprop:Generator_UserColumnName="CONTRACT_NUM">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NSI_ORGANIZATION_SHORT_NAME" msprop:Generator_ColumnVarNameInTable="columnNSI_ORGANIZATION_SHORT_NAME" msprop:Generator_ColumnPropNameInRow="NSI_ORGANIZATION_SHORT_NAME" msprop:Generator_ColumnPropNameInTable="NSI_ORGANIZATION_SHORT_NAMEColumn" msprop:Generator_UserColumnName="NSI_ORGANIZATION_SHORT_NAME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NSI_TYPE_OF_ACTIVITY_NAME" msprop:Generator_ColumnVarNameInTable="columnNSI_TYPE_OF_ACTIVITY_NAME" msprop:Generator_ColumnPropNameInRow="NSI_TYPE_OF_ACTIVITY_NAME" msprop:Generator_ColumnPropNameInTable="NSI_TYPE_OF_ACTIVITY_NAMEColumn" msprop:Generator_UserColumnName="NSI_TYPE_OF_ACTIVITY_NAME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PID" msprop:Generator_ColumnVarNameInTable="columnPID" msprop:Generator_ColumnPropNameInRow="PID" msprop:Generator_ColumnPropNameInTable="PIDColumn" msprop:Generator_UserColumnName="PID" type="xs:int" minOccurs="0" />
              <xs:element name="ID" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="NUMBER" msprop:Generator_ColumnVarNameInTable="columnNUMBER" msprop:Generator_ColumnPropNameInRow="NUMBER" msprop:Generator_ColumnPropNameInTable="NUMBERColumn" msprop:Generator_UserColumnName="NUMBER">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="DATE" msprop:Generator_ColumnVarNameInTable="columnDATE" msprop:Generator_ColumnPropNameInRow="DATE" msprop:Generator_ColumnPropNameInTable="DATEColumn" msprop:Generator_UserColumnName="DATE" type="xs:dateTime" />
              <xs:element name="PROD_GROUPS" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnPROD_GROUPS" msprop:Generator_ColumnPropNameInRow="PROD_GROUPS" msprop:Generator_ColumnPropNameInTable="PROD_GROUPSColumn" msprop:Generator_UserColumnName="PROD_GROUPS" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2147483647" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="AGGR_PRODUCT_UNTS" msprop:Generator_TableClassName="AGGR_PRODUCT_UNTSDataTable" msprop:Generator_TableVarName="tableAGGR_PRODUCT_UNTS" msprop:Generator_RowChangedName="AGGR_PRODUCT_UNTSRowChanged" msprop:Generator_TablePropName="AGGR_PRODUCT_UNTS" msprop:Generator_RowDeletingName="AGGR_PRODUCT_UNTSRowDeleting" msprop:Generator_RowChangingName="AGGR_PRODUCT_UNTSRowChanging" msprop:Generator_RowEvHandlerName="AGGR_PRODUCT_UNTSRowChangeEventHandler" msprop:Generator_RowDeletedName="AGGR_PRODUCT_UNTSRowDeleted" msprop:Generator_RowClassName="AGGR_PRODUCT_UNTSRow" msprop:Generator_UserTableName="AGGR_PRODUCT_UNTS" msprop:Generator_RowEvArgName="AGGR_PRODUCT_UNTSRowChangeEvent">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="PRODUCT_UNIT_NAME" msprop:Generator_ColumnVarNameInTable="columnPRODUCT_UNIT_NAME" msprop:Generator_ColumnPropNameInRow="PRODUCT_UNIT_NAME" msprop:Generator_ColumnPropNameInTable="PRODUCT_UNIT_NAMEColumn" msprop:Generator_UserColumnName="PRODUCT_UNIT_NAME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NSI_METER_NAME" msprop:Generator_ColumnVarNameInTable="columnNSI_METER_NAME" msprop:Generator_ColumnPropNameInRow="NSI_METER_NAME" msprop:Generator_ColumnPropNameInTable="NSI_METER_NAMEColumn" msprop:Generator_UserColumnName="NSI_METER_NAME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NSI_PRODUCT_ID" msprop:Generator_ColumnVarNameInTable="columnNSI_PRODUCT_ID" msprop:Generator_ColumnPropNameInRow="NSI_PRODUCT_ID" msprop:Generator_ColumnPropNameInTable="NSI_PRODUCT_IDColumn" msprop:Generator_UserColumnName="NSI_PRODUCT_ID" type="xs:int" minOccurs="0" />
              <xs:element name="COUNT" msprop:nullValue="0" msprop:Generator_ColumnPropNameInRow="COUNT" msprop:Generator_ColumnVarNameInTable="columnCOUNT" msprop:Generator_ColumnPropNameInTable="COUNTColumn" msprop:Generator_UserColumnName="COUNT" type="xs:int" default="0" minOccurs="0" />
              <xs:element name="COST" msprop:nullValue="0" msprop:Generator_ColumnPropNameInRow="COST" msprop:Generator_ColumnVarNameInTable="columnCOST" msprop:Generator_ColumnPropNameInTable="COSTColumn" msprop:Generator_UserColumnName="COST" type="xs:decimal" default="0" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="VIEW_SEARCH_GUILD_BILL" msprop:Generator_TableClassName="VIEW_SEARCH_GUILD_BILLDataTable" msprop:Generator_TableVarName="tableVIEW_SEARCH_GUILD_BILL" msprop:Generator_RowChangedName="VIEW_SEARCH_GUILD_BILLRowChanged" msprop:Generator_TablePropName="VIEW_SEARCH_GUILD_BILL" msprop:Generator_RowDeletingName="VIEW_SEARCH_GUILD_BILLRowDeleting" msprop:Generator_RowChangingName="VIEW_SEARCH_GUILD_BILLRowChanging" msprop:Generator_RowEvHandlerName="VIEW_SEARCH_GUILD_BILLRowChangeEventHandler" msprop:Generator_RowDeletedName="VIEW_SEARCH_GUILD_BILLRowDeleted" msprop:Generator_RowClassName="VIEW_SEARCH_GUILD_BILLRow" msprop:Generator_UserTableName="VIEW_SEARCH_GUILD_BILL" msprop:Generator_RowEvArgName="VIEW_SEARCH_GUILD_BILLRowChangeEvent">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="NUMBER" msprop:Generator_ColumnVarNameInTable="columnNUMBER" msprop:Generator_ColumnPropNameInRow="NUMBER" msprop:Generator_ColumnPropNameInTable="NUMBERColumn" msprop:Generator_UserColumnName="NUMBER">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PID" msprop:Generator_ColumnVarNameInTable="columnPID" msprop:Generator_ColumnPropNameInRow="PID" msprop:Generator_ColumnPropNameInTable="PIDColumn" msprop:Generator_UserColumnName="PID" type="xs:int" minOccurs="0" />
              <xs:element name="CONTRACT_NUM" msprop:Generator_ColumnVarNameInTable="columnCONTRACT_NUM" msprop:Generator_ColumnPropNameInRow="CONTRACT_NUM" msprop:Generator_ColumnPropNameInTable="CONTRACT_NUMColumn" msprop:Generator_UserColumnName="CONTRACT_NUM">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NSI_ORGANIZATION_SHORT_NAME" msprop:Generator_ColumnVarNameInTable="columnNSI_ORGANIZATION_SHORT_NAME" msprop:Generator_ColumnPropNameInRow="NSI_ORGANIZATION_SHORT_NAME" msprop:Generator_ColumnPropNameInTable="NSI_ORGANIZATION_SHORT_NAMEColumn" msprop:Generator_UserColumnName="NSI_ORGANIZATION_SHORT_NAME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NSI_TYPE_OF_ACTIVITY_NAME" msprop:Generator_ColumnVarNameInTable="columnNSI_TYPE_OF_ACTIVITY_NAME" msprop:Generator_ColumnPropNameInRow="NSI_TYPE_OF_ACTIVITY_NAME" msprop:Generator_ColumnPropNameInTable="NSI_TYPE_OF_ACTIVITY_NAMEColumn" msprop:Generator_UserColumnName="NSI_TYPE_OF_ACTIVITY_NAME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="DATE" msprop:Generator_ColumnVarNameInTable="columnDATE" msprop:Generator_ColumnPropNameInRow="DATE" msprop:Generator_ColumnPropNameInTable="DATEColumn" msprop:Generator_UserColumnName="DATE" type="xs:dateTime" />
              <xs:element name="PROD_GROUPS" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnPROD_GROUPS" msprop:Generator_ColumnPropNameInRow="PROD_GROUPS" msprop:Generator_ColumnPropNameInTable="PROD_GROUPSColumn" msprop:Generator_UserColumnName="PROD_GROUPS" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2147483647" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="VIEW_GUILD_BILL_ITEM" msprop:Generator_TableClassName="VIEW_GUILD_BILL_ITEMDataTable" msprop:Generator_TableVarName="tableVIEW_GUILD_BILL_ITEM" msprop:Generator_RowChangedName="VIEW_GUILD_BILL_ITEMRowChanged" msprop:Generator_TablePropName="VIEW_GUILD_BILL_ITEM" msprop:Generator_RowDeletingName="VIEW_GUILD_BILL_ITEMRowDeleting" msprop:Generator_RowChangingName="VIEW_GUILD_BILL_ITEMRowChanging" msprop:Generator_RowEvHandlerName="VIEW_GUILD_BILL_ITEMRowChangeEventHandler" msprop:Generator_RowDeletedName="VIEW_GUILD_BILL_ITEMRowDeleted" msprop:Generator_RowClassName="VIEW_GUILD_BILL_ITEMRow" msprop:Generator_UserTableName="VIEW_GUILD_BILL_ITEM" msprop:Generator_RowEvArgName="VIEW_GUILD_BILL_ITEMRowChangeEvent">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="PRODUCT_UNIT_NAME" msprop:Generator_ColumnVarNameInTable="columnPRODUCT_UNIT_NAME" msprop:Generator_ColumnPropNameInRow="PRODUCT_UNIT_NAME" msprop:Generator_ColumnPropNameInTable="PRODUCT_UNIT_NAMEColumn" msprop:Generator_UserColumnName="PRODUCT_UNIT_NAME">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NSI_PRODUCT_STATE_NAME" msprop:Generator_ColumnVarNameInTable="columnNSI_PRODUCT_STATE_NAME" msprop:Generator_ColumnPropNameInRow="NSI_PRODUCT_STATE_NAME" msprop:Generator_ColumnPropNameInTable="NSI_PRODUCT_STATE_NAMEColumn" msprop:Generator_UserColumnName="NSI_PRODUCT_STATE_NAME">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PRODUCT_UNIT_TYPE" msprop:Generator_ColumnVarNameInTable="columnPRODUCT_UNIT_TYPE" msprop:Generator_ColumnPropNameInRow="PRODUCT_UNIT_TYPE" msprop:Generator_ColumnPropNameInTable="PRODUCT_UNIT_TYPEColumn" msprop:Generator_UserColumnName="PRODUCT_UNIT_TYPE" type="xs:boolean" minOccurs="0" />
              <xs:element name="PRODUCT_UNIT_COST" msprop:Generator_ColumnVarNameInTable="columnPRODUCT_UNIT_COST" msprop:Generator_ColumnPropNameInRow="PRODUCT_UNIT_COST" msprop:Generator_ColumnPropNameInTable="PRODUCT_UNIT_COSTColumn" msprop:Generator_UserColumnName="PRODUCT_UNIT_COST" type="xs:decimal" minOccurs="0" />
              <xs:element name="INVOICE_IN_SUM" msprop:Generator_ColumnVarNameInTable="columnINVOICE_IN_SUM" msprop:Generator_ColumnPropNameInRow="INVOICE_IN_SUM" msprop:Generator_ColumnPropNameInTable="INVOICE_IN_SUMColumn" msprop:Generator_UserColumnName="INVOICE_IN_SUM" type="xs:decimal" minOccurs="0" />
              <xs:element name="NSI_CURRENCY_NAME" msprop:Generator_ColumnVarNameInTable="columnNSI_CURRENCY_NAME" msprop:Generator_ColumnPropNameInRow="NSI_CURRENCY_NAME" msprop:Generator_ColumnPropNameInTable="NSI_CURRENCY_NAMEColumn" msprop:Generator_UserColumnName="NSI_CURRENCY_NAME">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="COST_PROTOCOL_NUMBER" msprop:Generator_ColumnVarNameInTable="columnCOST_PROTOCOL_NUMBER" msprop:Generator_ColumnPropNameInRow="COST_PROTOCOL_NUMBER" msprop:Generator_ColumnPropNameInTable="COST_PROTOCOL_NUMBERColumn" msprop:Generator_UserColumnName="COST_PROTOCOL_NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="CP_STAGE_ID" msprop:Generator_ColumnVarNameInTable="columnCP_STAGE_ID" msprop:Generator_ColumnPropNameInRow="CP_STAGE_ID" msprop:Generator_ColumnPropNameInTable="CP_STAGE_IDColumn" msprop:Generator_UserColumnName="CP_STAGE_ID" type="xs:int" />
              <xs:element name="CP_STAGE_NUMBER" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnCP_STAGE_NUMBER" msprop:Generator_ColumnPropNameInRow="CP_STAGE_NUMBER" msprop:Generator_ColumnPropNameInTable="CP_STAGE_NUMBERColumn" msprop:Generator_UserColumnName="CP_STAGE_NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="103" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="CP_STAGE_START_DATE" msprop:Generator_ColumnVarNameInTable="columnCP_STAGE_START_DATE" msprop:Generator_ColumnPropNameInRow="CP_STAGE_START_DATE" msprop:Generator_ColumnPropNameInTable="CP_STAGE_START_DATEColumn" msprop:Generator_UserColumnName="CP_STAGE_START_DATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="CP_STAGE_END_DATE" msprop:Generator_ColumnVarNameInTable="columnCP_STAGE_END_DATE" msprop:Generator_ColumnPropNameInRow="CP_STAGE_END_DATE" msprop:Generator_ColumnPropNameInTable="CP_STAGE_END_DATEColumn" msprop:Generator_UserColumnName="CP_STAGE_END_DATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="NSI_PRODUCT_STATE_ID" msprop:Generator_ColumnVarNameInTable="columnNSI_PRODUCT_STATE_ID" msprop:Generator_ColumnPropNameInRow="NSI_PRODUCT_STATE_ID" msprop:Generator_ColumnPropNameInTable="NSI_PRODUCT_STATE_IDColumn" msprop:Generator_UserColumnName="NSI_PRODUCT_STATE_ID" type="xs:int" minOccurs="0" />
              <xs:element name="NSI_PRODUCT_ID" msprop:Generator_ColumnVarNameInTable="columnNSI_PRODUCT_ID" msprop:Generator_ColumnPropNameInRow="NSI_PRODUCT_ID" msprop:Generator_ColumnPropNameInTable="NSI_PRODUCT_IDColumn" msprop:Generator_UserColumnName="NSI_PRODUCT_ID" type="xs:int" minOccurs="0" />
              <xs:element name="GUILD_BILL_NUMBER" msprop:Generator_ColumnVarNameInTable="columnGUILD_BILL_NUMBER" msprop:Generator_ColumnPropNameInRow="GUILD_BILL_NUMBER" msprop:Generator_ColumnPropNameInTable="GUILD_BILL_NUMBERColumn" msprop:Generator_UserColumnName="GUILD_BILL_NUMBER">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="DIRECT_NUMBER" msprop:Generator_ColumnVarNameInTable="columnDIRECT_NUMBER" msprop:Generator_ColumnPropNameInRow="DIRECT_NUMBER" msprop:Generator_ColumnPropNameInTable="DIRECT_NUMBERColumn" msprop:Generator_UserColumnName="DIRECT_NUMBER">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="DIRECT_NUMBER_ID" msprop:Generator_ColumnVarNameInTable="columnDIRECT_NUMBER_ID" msprop:Generator_ColumnPropNameInRow="DIRECT_NUMBER_ID" msprop:Generator_ColumnPropNameInTable="DIRECT_NUMBER_IDColumn" msprop:Generator_UserColumnName="DIRECT_NUMBER_ID" type="xs:int" minOccurs="0" />
              <xs:element name="GUILD_BILL_NUMBER_ID" msprop:Generator_ColumnVarNameInTable="columnGUILD_BILL_NUMBER_ID" msprop:Generator_ColumnPropNameInRow="GUILD_BILL_NUMBER_ID" msprop:Generator_ColumnPropNameInTable="GUILD_BILL_NUMBER_IDColumn" msprop:Generator_UserColumnName="GUILD_BILL_NUMBER_ID" type="xs:int" minOccurs="0" />
              <xs:element name="VAT_INVOICE_ID" msprop:Generator_ColumnVarNameInTable="columnVAT_INVOICE_ID" msprop:Generator_ColumnPropNameInRow="VAT_INVOICE_ID" msprop:Generator_ColumnPropNameInTable="VAT_INVOICE_IDColumn" msprop:Generator_UserColumnName="VAT_INVOICE_ID" type="xs:int" minOccurs="0" />
              <xs:element name="VAT_INVOICE_NUMBER" msprop:Generator_ColumnVarNameInTable="columnVAT_INVOICE_NUMBER" msprop:Generator_ColumnPropNameInRow="VAT_INVOICE_NUMBER" msprop:Generator_ColumnPropNameInTable="VAT_INVOICE_NUMBERColumn" msprop:Generator_UserColumnName="VAT_INVOICE_NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NSI_METER_NAME" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="NSI_METER_NAME" msprop:Generator_ColumnVarNameInTable="columnNSI_METER_NAME" msprop:Generator_ColumnPropNameInTable="NSI_METER_NAMEColumn" msprop:Generator_UserColumnName="NSI_METER_NAME" default="" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PAY_PER" msdata:ReadOnly="true" msprop:nullValue="0" msprop:Generator_ColumnPropNameInRow="PAY_PER" msprop:Generator_ColumnVarNameInTable="columnPAY_PER" msprop:Generator_ColumnPropNameInTable="PAY_PERColumn" msprop:Generator_UserColumnName="PAY_PER" type="xs:decimal" default="0" minOccurs="0" />
              <xs:element name="ID" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="VAT_INVOICE_DATE" msprop:Generator_ColumnVarNameInTable="columnVAT_INVOICE_DATE" msprop:Generator_ColumnPropNameInRow="VAT_INVOICE_DATE" msprop:Generator_ColumnPropNameInTable="VAT_INVOICE_DATEColumn" msprop:Generator_UserColumnName="VAT_INVOICE_DATE" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="30" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="INVOICE_OUT_NUMBER" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnINVOICE_OUT_NUMBER" msprop:Generator_ColumnPropNameInRow="INVOICE_OUT_NUMBER" msprop:Generator_ColumnPropNameInTable="INVOICE_OUT_NUMBERColumn" msprop:Generator_UserColumnName="INVOICE_OUT_NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2147483647" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="CALENDAR_PLAN_NUMBER" msprop:Generator_ColumnVarNameInTable="columnCALENDAR_PLAN_NUMBER" msprop:Generator_ColumnPropNameInRow="CALENDAR_PLAN_NUMBER" msprop:Generator_ColumnPropNameInTable="CALENDAR_PLAN_NUMBERColumn" msprop:Generator_UserColumnName="CALENDAR_PLAN_NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="VIEWS_SEARCH_VAT_INVOICE" msprop:Generator_TableClassName="VIEWS_SEARCH_VAT_INVOICEDataTable" msprop:Generator_TableVarName="tableVIEWS_SEARCH_VAT_INVOICE" msprop:Generator_RowChangedName="VIEWS_SEARCH_VAT_INVOICERowChanged" msprop:Generator_TablePropName="VIEWS_SEARCH_VAT_INVOICE" msprop:Generator_RowDeletingName="VIEWS_SEARCH_VAT_INVOICERowDeleting" msprop:Generator_RowChangingName="VIEWS_SEARCH_VAT_INVOICERowChanging" msprop:Generator_RowEvHandlerName="VIEWS_SEARCH_VAT_INVOICERowChangeEventHandler" msprop:Generator_RowDeletedName="VIEWS_SEARCH_VAT_INVOICERowDeleted" msprop:Generator_RowClassName="VIEWS_SEARCH_VAT_INVOICERow" msprop:Generator_UserTableName="VIEWS_SEARCH_VAT_INVOICE" msprop:Generator_RowEvArgName="VIEWS_SEARCH_VAT_INVOICERowChangeEvent">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="CONTRACT_NUM" msprop:Generator_ColumnVarNameInTable="columnCONTRACT_NUM" msprop:Generator_ColumnPropNameInRow="CONTRACT_NUM" msprop:Generator_ColumnPropNameInTable="CONTRACT_NUMColumn" msprop:Generator_UserColumnName="CONTRACT_NUM" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NSI_ORGANIZATION_SHORT_NAME" msprop:Generator_ColumnVarNameInTable="columnNSI_ORGANIZATION_SHORT_NAME" msprop:Generator_ColumnPropNameInRow="NSI_ORGANIZATION_SHORT_NAME" msprop:Generator_ColumnPropNameInTable="NSI_ORGANIZATION_SHORT_NAMEColumn" msprop:Generator_UserColumnName="NSI_ORGANIZATION_SHORT_NAME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NSI_TYPE_OF_ACTIVITY_NAME" msprop:Generator_ColumnVarNameInTable="columnNSI_TYPE_OF_ACTIVITY_NAME" msprop:Generator_ColumnPropNameInRow="NSI_TYPE_OF_ACTIVITY_NAME" msprop:Generator_ColumnPropNameInTable="NSI_TYPE_OF_ACTIVITY_NAMEColumn" msprop:Generator_UserColumnName="NSI_TYPE_OF_ACTIVITY_NAME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PID" msprop:Generator_ColumnVarNameInTable="columnPID" msprop:Generator_ColumnPropNameInRow="PID" msprop:Generator_ColumnPropNameInTable="PIDColumn" msprop:Generator_UserColumnName="PID" type="xs:int" minOccurs="0" />
              <xs:element name="ID" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="NUMBER" msprop:Generator_ColumnVarNameInTable="columnNUMBER" msprop:Generator_ColumnPropNameInRow="NUMBER" msprop:Generator_ColumnPropNameInTable="NUMBERColumn" msprop:Generator_UserColumnName="NUMBER">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="DATE" msprop:Generator_ColumnVarNameInTable="columnDATE" msprop:Generator_ColumnPropNameInRow="DATE" msprop:Generator_ColumnPropNameInTable="DATEColumn" msprop:Generator_UserColumnName="DATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="SUM_RUB" msprop:Generator_ColumnVarNameInTable="columnSUM_RUB" msprop:Generator_ColumnPropNameInRow="SUM_RUB" msprop:Generator_ColumnPropNameInTable="SUM_RUBColumn" msprop:Generator_UserColumnName="SUM_RUB" type="xs:decimal" minOccurs="0" />
              <xs:element name="NSI_ORGANIZATION_ID" msprop:Generator_ColumnVarNameInTable="columnNSI_ORGANIZATION_ID" msprop:Generator_ColumnPropNameInRow="NSI_ORGANIZATION_ID" msprop:Generator_ColumnPropNameInTable="NSI_ORGANIZATION_IDColumn" msprop:Generator_UserColumnName="NSI_ORGANIZATION_ID" type="xs:int" minOccurs="0" />
              <xs:element name="PROD_GROUPS" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnPROD_GROUPS" msprop:Generator_ColumnPropNameInRow="PROD_GROUPS" msprop:Generator_ColumnPropNameInTable="PROD_GROUPSColumn" msprop:Generator_UserColumnName="PROD_GROUPS" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2147483647" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="VIEW_VAT_IVOICE_ITEM" msprop:Generator_TableClassName="VIEW_VAT_IVOICE_ITEMDataTable" msprop:Generator_TableVarName="tableVIEW_VAT_IVOICE_ITEM" msprop:Generator_RowChangedName="VIEW_VAT_IVOICE_ITEMRowChanged" msprop:Generator_TablePropName="VIEW_VAT_IVOICE_ITEM" msprop:Generator_RowDeletingName="VIEW_VAT_IVOICE_ITEMRowDeleting" msprop:Generator_RowChangingName="VIEW_VAT_IVOICE_ITEMRowChanging" msprop:Generator_RowEvHandlerName="VIEW_VAT_IVOICE_ITEMRowChangeEventHandler" msprop:Generator_RowDeletedName="VIEW_VAT_IVOICE_ITEMRowDeleted" msprop:Generator_RowClassName="VIEW_VAT_IVOICE_ITEMRow" msprop:Generator_UserTableName="VIEW_VAT_IVOICE_ITEM" msprop:Generator_RowEvArgName="VIEW_VAT_IVOICE_ITEMRowChangeEvent">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="PRODUCT_UNIT_NAME" msprop:Generator_ColumnVarNameInTable="columnPRODUCT_UNIT_NAME" msprop:Generator_ColumnPropNameInRow="PRODUCT_UNIT_NAME" msprop:Generator_ColumnPropNameInTable="PRODUCT_UNIT_NAMEColumn" msprop:Generator_UserColumnName="PRODUCT_UNIT_NAME">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NSI_PRODUCT_STATE_NAME" msprop:Generator_ColumnVarNameInTable="columnNSI_PRODUCT_STATE_NAME" msprop:Generator_ColumnPropNameInRow="NSI_PRODUCT_STATE_NAME" msprop:Generator_ColumnPropNameInTable="NSI_PRODUCT_STATE_NAMEColumn" msprop:Generator_UserColumnName="NSI_PRODUCT_STATE_NAME">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PRODUCT_UNIT_TYPE" msprop:Generator_ColumnVarNameInTable="columnPRODUCT_UNIT_TYPE" msprop:Generator_ColumnPropNameInRow="PRODUCT_UNIT_TYPE" msprop:Generator_ColumnPropNameInTable="PRODUCT_UNIT_TYPEColumn" msprop:Generator_UserColumnName="PRODUCT_UNIT_TYPE" type="xs:boolean" minOccurs="0" />
              <xs:element name="PRODUCT_UNIT_COST" msprop:Generator_ColumnVarNameInTable="columnPRODUCT_UNIT_COST" msprop:Generator_ColumnPropNameInRow="PRODUCT_UNIT_COST" msprop:Generator_ColumnPropNameInTable="PRODUCT_UNIT_COSTColumn" msprop:Generator_UserColumnName="PRODUCT_UNIT_COST" type="xs:decimal" minOccurs="0" />
              <xs:element name="INVOICE_IN_SUM" msprop:Generator_ColumnVarNameInTable="columnINVOICE_IN_SUM" msprop:Generator_ColumnPropNameInRow="INVOICE_IN_SUM" msprop:Generator_ColumnPropNameInTable="INVOICE_IN_SUMColumn" msprop:Generator_UserColumnName="INVOICE_IN_SUM" type="xs:decimal" minOccurs="0" />
              <xs:element name="NSI_CURRENCY_NAME" msprop:Generator_ColumnVarNameInTable="columnNSI_CURRENCY_NAME" msprop:Generator_ColumnPropNameInRow="NSI_CURRENCY_NAME" msprop:Generator_ColumnPropNameInTable="NSI_CURRENCY_NAMEColumn" msprop:Generator_UserColumnName="NSI_CURRENCY_NAME">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="COST_PROTOCOL_NUMBER" msprop:Generator_ColumnVarNameInTable="columnCOST_PROTOCOL_NUMBER" msprop:Generator_ColumnPropNameInRow="COST_PROTOCOL_NUMBER" msprop:Generator_ColumnPropNameInTable="COST_PROTOCOL_NUMBERColumn" msprop:Generator_UserColumnName="COST_PROTOCOL_NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="CP_STAGE_ID" msprop:Generator_ColumnVarNameInTable="columnCP_STAGE_ID" msprop:Generator_ColumnPropNameInRow="CP_STAGE_ID" msprop:Generator_ColumnPropNameInTable="CP_STAGE_IDColumn" msprop:Generator_UserColumnName="CP_STAGE_ID" type="xs:int" />
              <xs:element name="CP_STAGE_NUMBER" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnCP_STAGE_NUMBER" msprop:Generator_ColumnPropNameInRow="CP_STAGE_NUMBER" msprop:Generator_ColumnPropNameInTable="CP_STAGE_NUMBERColumn" msprop:Generator_UserColumnName="CP_STAGE_NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="103" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="CP_STAGE_START_DATE" msprop:Generator_ColumnVarNameInTable="columnCP_STAGE_START_DATE" msprop:Generator_ColumnPropNameInRow="CP_STAGE_START_DATE" msprop:Generator_ColumnPropNameInTable="CP_STAGE_START_DATEColumn" msprop:Generator_UserColumnName="CP_STAGE_START_DATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="CP_STAGE_END_DATE" msprop:Generator_ColumnVarNameInTable="columnCP_STAGE_END_DATE" msprop:Generator_ColumnPropNameInRow="CP_STAGE_END_DATE" msprop:Generator_ColumnPropNameInTable="CP_STAGE_END_DATEColumn" msprop:Generator_UserColumnName="CP_STAGE_END_DATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="NSI_PRODUCT_STATE_ID" msprop:Generator_ColumnVarNameInTable="columnNSI_PRODUCT_STATE_ID" msprop:Generator_ColumnPropNameInRow="NSI_PRODUCT_STATE_ID" msprop:Generator_ColumnPropNameInTable="NSI_PRODUCT_STATE_IDColumn" msprop:Generator_UserColumnName="NSI_PRODUCT_STATE_ID" type="xs:int" minOccurs="0" />
              <xs:element name="NSI_PRODUCT_ID" msprop:Generator_ColumnVarNameInTable="columnNSI_PRODUCT_ID" msprop:Generator_ColumnPropNameInRow="NSI_PRODUCT_ID" msprop:Generator_ColumnPropNameInTable="NSI_PRODUCT_IDColumn" msprop:Generator_UserColumnName="NSI_PRODUCT_ID" type="xs:int" minOccurs="0" />
              <xs:element name="GUILD_BILL_NUMBER" msprop:Generator_ColumnVarNameInTable="columnGUILD_BILL_NUMBER" msprop:Generator_ColumnPropNameInRow="GUILD_BILL_NUMBER" msprop:Generator_ColumnPropNameInTable="GUILD_BILL_NUMBERColumn" msprop:Generator_UserColumnName="GUILD_BILL_NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="DIRECT_NUMBER" msprop:Generator_ColumnVarNameInTable="columnDIRECT_NUMBER" msprop:Generator_ColumnPropNameInRow="DIRECT_NUMBER" msprop:Generator_ColumnPropNameInTable="DIRECT_NUMBERColumn" msprop:Generator_UserColumnName="DIRECT_NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="DIRECT_NUMBER_ID" msprop:Generator_ColumnVarNameInTable="columnDIRECT_NUMBER_ID" msprop:Generator_ColumnPropNameInRow="DIRECT_NUMBER_ID" msprop:Generator_ColumnPropNameInTable="DIRECT_NUMBER_IDColumn" msprop:Generator_UserColumnName="DIRECT_NUMBER_ID" type="xs:int" minOccurs="0" />
              <xs:element name="GUILD_BILL_NUMBER_ID" msprop:Generator_ColumnVarNameInTable="columnGUILD_BILL_NUMBER_ID" msprop:Generator_ColumnPropNameInRow="GUILD_BILL_NUMBER_ID" msprop:Generator_ColumnPropNameInTable="GUILD_BILL_NUMBER_IDColumn" msprop:Generator_UserColumnName="GUILD_BILL_NUMBER_ID" type="xs:int" minOccurs="0" />
              <xs:element name="VAT_INVOICE_ID" msprop:Generator_ColumnVarNameInTable="columnVAT_INVOICE_ID" msprop:Generator_ColumnPropNameInRow="VAT_INVOICE_ID" msprop:Generator_ColumnPropNameInTable="VAT_INVOICE_IDColumn" msprop:Generator_UserColumnName="VAT_INVOICE_ID" type="xs:int" minOccurs="0" />
              <xs:element name="VAT_INVOICE_NUMBER" msprop:Generator_ColumnVarNameInTable="columnVAT_INVOICE_NUMBER" msprop:Generator_ColumnPropNameInRow="VAT_INVOICE_NUMBER" msprop:Generator_ColumnPropNameInTable="VAT_INVOICE_NUMBERColumn" msprop:Generator_UserColumnName="VAT_INVOICE_NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NSI_METER_NAME" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="NSI_METER_NAME" msprop:Generator_ColumnVarNameInTable="columnNSI_METER_NAME" msprop:Generator_ColumnPropNameInTable="NSI_METER_NAMEColumn" msprop:Generator_UserColumnName="NSI_METER_NAME" default="" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PAY_PER" msdata:ReadOnly="true" msprop:nullValue="0" msprop:Generator_ColumnPropNameInRow="PAY_PER" msprop:Generator_ColumnVarNameInTable="columnPAY_PER" msprop:Generator_ColumnPropNameInTable="PAY_PERColumn" msprop:Generator_UserColumnName="PAY_PER" type="xs:decimal" default="0" minOccurs="0" />
              <xs:element name="ID" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="VAT_INVOICE_DATE" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnVAT_INVOICE_DATE" msprop:Generator_ColumnPropNameInRow="VAT_INVOICE_DATE" msprop:Generator_ColumnPropNameInTable="VAT_INVOICE_DATEColumn" msprop:Generator_UserColumnName="VAT_INVOICE_DATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="VAT_INVOICE_DATE1" msdata:Caption="VAT_INVOICE_DATE" msprop:Generator_ColumnVarNameInTable="columnVAT_INVOICE_DATE1" msprop:Generator_ColumnPropNameInRow="VAT_INVOICE_DATE1" msprop:Generator_ColumnPropNameInTable="VAT_INVOICE_DATE1Column" msprop:Generator_UserColumnName="VAT_INVOICE_DATE1" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="30" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="INVOICE_OUT_NUMBER" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnINVOICE_OUT_NUMBER" msprop:Generator_ColumnPropNameInRow="INVOICE_OUT_NUMBER" msprop:Generator_ColumnPropNameInTable="INVOICE_OUT_NUMBERColumn" msprop:Generator_UserColumnName="INVOICE_OUT_NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2147483647" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NSI_PROD_GROUP_NAME" msprop:Generator_ColumnVarNameInTable="columnNSI_PROD_GROUP_NAME" msprop:Generator_ColumnPropNameInRow="NSI_PROD_GROUP_NAME" msprop:Generator_ColumnPropNameInTable="NSI_PROD_GROUP_NAMEColumn" msprop:Generator_UserColumnName="NSI_PROD_GROUP_NAME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PROD_GROUP" msprop:Generator_ColumnVarNameInTable="columnPROD_GROUP" msprop:Generator_ColumnPropNameInRow="PROD_GROUP" msprop:Generator_ColumnPropNameInTable="PROD_GROUPColumn" msprop:Generator_UserColumnName="PROD_GROUP" type="xs:int" minOccurs="0" />
              <xs:element name="N_DRAWING" msprop:Generator_ColumnVarNameInTable="columnN_DRAWING" msprop:Generator_ColumnPropNameInRow="N_DRAWING" msprop:Generator_ColumnPropNameInTable="N_DRAWINGColumn" msprop:Generator_UserColumnName="N_DRAWING" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="CALENDAR_PLAN_NUMBER" msprop:Generator_ColumnVarNameInTable="columnCALENDAR_PLAN_NUMBER" msprop:Generator_ColumnPropNameInRow="CALENDAR_PLAN_NUMBER" msprop:Generator_ColumnPropNameInTable="CALENDAR_PLAN_NUMBERColumn" msprop:Generator_UserColumnName="CALENDAR_PLAN_NUMBER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="VIEW_SEARCH_NSI_SERVICE" msprop:Generator_TableClassName="VIEW_SEARCH_NSI_SERVICEDataTable" msprop:Generator_TableVarName="tableVIEW_SEARCH_NSI_SERVICE" msprop:Generator_RowChangedName="VIEW_SEARCH_NSI_SERVICERowChanged" msprop:Generator_TablePropName="VIEW_SEARCH_NSI_SERVICE" msprop:Generator_RowDeletingName="VIEW_SEARCH_NSI_SERVICERowDeleting" msprop:Generator_RowChangingName="VIEW_SEARCH_NSI_SERVICERowChanging" msprop:Generator_RowEvHandlerName="VIEW_SEARCH_NSI_SERVICERowChangeEventHandler" msprop:Generator_RowDeletedName="VIEW_SEARCH_NSI_SERVICERowDeleted" msprop:Generator_RowClassName="VIEW_SEARCH_NSI_SERVICERow" msprop:Generator_UserTableName="VIEW_SEARCH_NSI_SERVICE" msprop:Generator_RowEvArgName="VIEW_SEARCH_NSI_SERVICERowChangeEvent">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="CODE" msprop:Generator_ColumnVarNameInTable="columnCODE" msprop:Generator_ColumnPropNameInRow="CODE" msprop:Generator_ColumnPropNameInTable="CODEColumn" msprop:Generator_UserColumnName="CODE" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="SHORT_NAME" msprop:Generator_ColumnVarNameInTable="columnSHORT_NAME" msprop:Generator_ColumnPropNameInRow="SHORT_NAME" msprop:Generator_ColumnPropNameInTable="SHORT_NAMEColumn" msprop:Generator_UserColumnName="SHORT_NAME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="FULL_NAME" msprop:Generator_ColumnVarNameInTable="columnFULL_NAME" msprop:Generator_ColumnPropNameInRow="FULL_NAME" msprop:Generator_ColumnPropNameInTable="FULL_NAMEColumn" msprop:Generator_UserColumnName="FULL_NAME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NSI_METER_NAME" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="NSI_METER_NAME" msprop:Generator_ColumnVarNameInTable="columnNSI_METER_NAME" msprop:Generator_ColumnPropNameInTable="NSI_METER_NAMEColumn" msprop:Generator_UserColumnName="NSI_METER_NAME" default="" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="COUNT" msdata:ReadOnly="true" msprop:nullValue="0" msprop:Generator_ColumnPropNameInRow="COUNT" msprop:Generator_ColumnVarNameInTable="columnCOUNT" msprop:Generator_ColumnPropNameInTable="COUNTColumn" msprop:Generator_UserColumnName="COUNT" type="xs:int" default="0" minOccurs="0" />
              <xs:element name="NSI_METER_ID" msprop:Generator_ColumnVarNameInTable="columnNSI_METER_ID" msprop:Generator_ColumnPropNameInRow="NSI_METER_ID" msprop:Generator_ColumnPropNameInTable="NSI_METER_IDColumn" msprop:Generator_UserColumnName="NSI_METER_ID" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="INVOICE_OUT_SERVICE_ITEM" msprop:Generator_TableClassName="INVOICE_OUT_SERVICE_ITEMDataTable" msprop:Generator_TableVarName="tableINVOICE_OUT_SERVICE_ITEM" msprop:Generator_RowChangedName="INVOICE_OUT_SERVICE_ITEMRowChanged" msprop:Generator_TablePropName="INVOICE_OUT_SERVICE_ITEM" msprop:Generator_RowDeletingName="INVOICE_OUT_SERVICE_ITEMRowDeleting" msprop:Generator_RowChangingName="INVOICE_OUT_SERVICE_ITEMRowChanging" msprop:Generator_RowEvHandlerName="INVOICE_OUT_SERVICE_ITEMRowChangeEventHandler" msprop:Generator_RowDeletedName="INVOICE_OUT_SERVICE_ITEMRowDeleted" msprop:Generator_RowClassName="INVOICE_OUT_SERVICE_ITEMRow" msprop:Generator_UserTableName="INVOICE_OUT_SERVICE_ITEM" msprop:Generator_RowEvArgName="INVOICE_OUT_SERVICE_ITEMRowChangeEvent">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="INVOICE_OUT_ID" msprop:Generator_ColumnVarNameInTable="columnINVOICE_OUT_ID" msprop:Generator_ColumnPropNameInRow="INVOICE_OUT_ID" msprop:Generator_ColumnPropNameInTable="INVOICE_OUT_IDColumn" msprop:Generator_UserColumnName="INVOICE_OUT_ID" type="xs:int" />
              <xs:element name="NSI_SERVICE_ID" msprop:Generator_ColumnVarNameInTable="columnNSI_SERVICE_ID" msprop:Generator_ColumnPropNameInRow="NSI_SERVICE_ID" msprop:Generator_ColumnPropNameInTable="NSI_SERVICE_IDColumn" msprop:Generator_UserColumnName="NSI_SERVICE_ID" type="xs:int" />
              <xs:element name="COUNT" msprop:Generator_ColumnVarNameInTable="columnCOUNT" msprop:Generator_ColumnPropNameInRow="COUNT" msprop:Generator_ColumnPropNameInTable="COUNTColumn" msprop:Generator_UserColumnName="COUNT" type="xs:decimal" />
              <xs:element name="LAST_UPDATE" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE" msprop:Generator_ColumnPropNameInTable="LAST_UPDATEColumn" msprop:Generator_UserColumnName="LAST_UPDATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="LAST_UPDATE_USER" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE_USER" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE_USER" msprop:Generator_ColumnPropNameInTable="LAST_UPDATE_USERColumn" msprop:Generator_UserColumnName="LAST_UPDATE_USER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PID" msprop:Generator_ColumnVarNameInTable="columnPID" msprop:Generator_ColumnPropNameInRow="PID" msprop:Generator_ColumnPropNameInTable="PIDColumn" msprop:Generator_UserColumnName="PID" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="VIEW_PAY_IN_ON_SERVICE" msprop:Generator_TableClassName="VIEW_PAY_IN_ON_SERVICEDataTable" msprop:Generator_TableVarName="tableVIEW_PAY_IN_ON_SERVICE" msprop:Generator_RowChangedName="VIEW_PAY_IN_ON_SERVICERowChanged" msprop:Generator_TablePropName="VIEW_PAY_IN_ON_SERVICE" msprop:Generator_RowDeletingName="VIEW_PAY_IN_ON_SERVICERowDeleting" msprop:Generator_RowChangingName="VIEW_PAY_IN_ON_SERVICERowChanging" msprop:Generator_RowEvHandlerName="VIEW_PAY_IN_ON_SERVICERowChangeEventHandler" msprop:Generator_RowDeletedName="VIEW_PAY_IN_ON_SERVICERowDeleted" msprop:Generator_RowClassName="VIEW_PAY_IN_ON_SERVICERow" msprop:Generator_UserTableName="VIEW_PAY_IN_ON_SERVICE" msprop:Generator_RowEvArgName="VIEW_PAY_IN_ON_SERVICERowChangeEvent">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="PAYMENT_IN_ID" msprop:Generator_ColumnVarNameInTable="columnPAYMENT_IN_ID" msprop:Generator_ColumnPropNameInRow="PAYMENT_IN_ID" msprop:Generator_ColumnPropNameInTable="PAYMENT_IN_IDColumn" msprop:Generator_UserColumnName="PAYMENT_IN_ID" type="xs:int" />
              <xs:element name="NSI_SERVICE_ID" msprop:Generator_ColumnVarNameInTable="columnNSI_SERVICE_ID" msprop:Generator_ColumnPropNameInRow="NSI_SERVICE_ID" msprop:Generator_ColumnPropNameInTable="NSI_SERVICE_IDColumn" msprop:Generator_UserColumnName="NSI_SERVICE_ID" type="xs:int" />
              <xs:element name="NSI_SERVICE_NAME" msprop:Generator_ColumnVarNameInTable="columnNSI_SERVICE_NAME" msprop:Generator_ColumnPropNameInRow="NSI_SERVICE_NAME" msprop:Generator_ColumnPropNameInTable="NSI_SERVICE_NAMEColumn" msprop:Generator_UserColumnName="NSI_SERVICE_NAME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NSI_METER_NAME" msprop:Generator_ColumnVarNameInTable="columnNSI_METER_NAME" msprop:Generator_ColumnPropNameInRow="NSI_METER_NAME" msprop:Generator_ColumnPropNameInTable="NSI_METER_NAMEColumn" msprop:Generator_UserColumnName="NSI_METER_NAME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="QAUNTITY" msprop:Generator_ColumnVarNameInTable="columnQAUNTITY" msprop:Generator_ColumnPropNameInRow="QAUNTITY" msprop:Generator_ColumnPropNameInTable="QAUNTITYColumn" msprop:Generator_UserColumnName="QAUNTITY" type="xs:decimal" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="VIEW_VAT_INV_ON_SERVICE" msprop:Generator_TableClassName="VIEW_VAT_INV_ON_SERVICEDataTable" msprop:Generator_TableVarName="tableVIEW_VAT_INV_ON_SERVICE" msprop:Generator_RowChangedName="VIEW_VAT_INV_ON_SERVICERowChanged" msprop:Generator_TablePropName="VIEW_VAT_INV_ON_SERVICE" msprop:Generator_RowDeletingName="VIEW_VAT_INV_ON_SERVICERowDeleting" msprop:Generator_RowChangingName="VIEW_VAT_INV_ON_SERVICERowChanging" msprop:Generator_RowEvHandlerName="VIEW_VAT_INV_ON_SERVICERowChangeEventHandler" msprop:Generator_RowDeletedName="VIEW_VAT_INV_ON_SERVICERowDeleted" msprop:Generator_RowClassName="VIEW_VAT_INV_ON_SERVICERow" msprop:Generator_UserTableName="VIEW_VAT_INV_ON_SERVICE" msprop:Generator_RowEvArgName="VIEW_VAT_INV_ON_SERVICERowChangeEvent">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="NSI_SERVICE_ID" msprop:Generator_ColumnVarNameInTable="columnNSI_SERVICE_ID" msprop:Generator_ColumnPropNameInRow="NSI_SERVICE_ID" msprop:Generator_ColumnPropNameInTable="NSI_SERVICE_IDColumn" msprop:Generator_UserColumnName="NSI_SERVICE_ID" type="xs:int" />
              <xs:element name="VAT_INVOICE_ID" msprop:Generator_ColumnVarNameInTable="columnVAT_INVOICE_ID" msprop:Generator_ColumnPropNameInRow="VAT_INVOICE_ID" msprop:Generator_ColumnPropNameInTable="VAT_INVOICE_IDColumn" msprop:Generator_UserColumnName="VAT_INVOICE_ID" type="xs:int" />
              <xs:element name="QUANTITY" msprop:Generator_ColumnVarNameInTable="columnQUANTITY" msprop:Generator_ColumnPropNameInRow="QUANTITY" msprop:Generator_ColumnPropNameInTable="QUANTITYColumn" msprop:Generator_UserColumnName="QUANTITY" type="xs:decimal" minOccurs="0" />
              <xs:element name="NSI_SERVICE_NAME" msprop:Generator_ColumnVarNameInTable="columnNSI_SERVICE_NAME" msprop:Generator_ColumnPropNameInRow="NSI_SERVICE_NAME" msprop:Generator_ColumnPropNameInTable="NSI_SERVICE_NAMEColumn" msprop:Generator_UserColumnName="NSI_SERVICE_NAME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NSI_METER_NAME" msprop:Generator_ColumnVarNameInTable="columnNSI_METER_NAME" msprop:Generator_ColumnPropNameInRow="NSI_METER_NAME" msprop:Generator_ColumnPropNameInTable="NSI_METER_NAMEColumn" msprop:Generator_UserColumnName="NSI_METER_NAME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="VIEW_INV_OUT_SERVICE_ITEM" msprop:Generator_TableClassName="VIEW_INV_OUT_SERVICE_ITEMDataTable" msprop:Generator_TableVarName="tableVIEW_INV_OUT_SERVICE_ITEM" msprop:Generator_RowChangedName="VIEW_INV_OUT_SERVICE_ITEMRowChanged" msprop:Generator_TablePropName="VIEW_INV_OUT_SERVICE_ITEM" msprop:Generator_RowDeletingName="VIEW_INV_OUT_SERVICE_ITEMRowDeleting" msprop:Generator_RowChangingName="VIEW_INV_OUT_SERVICE_ITEMRowChanging" msprop:Generator_RowEvHandlerName="VIEW_INV_OUT_SERVICE_ITEMRowChangeEventHandler" msprop:Generator_RowDeletedName="VIEW_INV_OUT_SERVICE_ITEMRowDeleted" msprop:Generator_RowClassName="VIEW_INV_OUT_SERVICE_ITEMRow" msprop:Generator_UserTableName="VIEW_INV_OUT_SERVICE_ITEM" msprop:Generator_RowEvArgName="VIEW_INV_OUT_SERVICE_ITEMRowChangeEvent">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="NSI_SERVICE_NAME" msprop:Generator_ColumnVarNameInTable="columnNSI_SERVICE_NAME" msprop:Generator_ColumnPropNameInRow="NSI_SERVICE_NAME" msprop:Generator_ColumnPropNameInTable="NSI_SERVICE_NAMEColumn" msprop:Generator_UserColumnName="NSI_SERVICE_NAME">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="INVOICE_OUT_ID" msprop:Generator_ColumnVarNameInTable="columnINVOICE_OUT_ID" msprop:Generator_ColumnPropNameInRow="INVOICE_OUT_ID" msprop:Generator_ColumnPropNameInTable="INVOICE_OUT_IDColumn" msprop:Generator_UserColumnName="INVOICE_OUT_ID" type="xs:int" />
              <xs:element name="NSI_SERVICE_ID" msprop:Generator_ColumnVarNameInTable="columnNSI_SERVICE_ID" msprop:Generator_ColumnPropNameInRow="NSI_SERVICE_ID" msprop:Generator_ColumnPropNameInTable="NSI_SERVICE_IDColumn" msprop:Generator_UserColumnName="NSI_SERVICE_ID" type="xs:int" />
              <xs:element name="COUNT" msprop:Generator_ColumnVarNameInTable="columnCOUNT" msprop:Generator_ColumnPropNameInRow="COUNT" msprop:Generator_ColumnPropNameInTable="COUNTColumn" msprop:Generator_UserColumnName="COUNT" type="xs:decimal" />
              <xs:element name="NSI_METER_NAME" msprop:Generator_ColumnVarNameInTable="columnNSI_METER_NAME" msprop:Generator_ColumnPropNameInRow="NSI_METER_NAME" msprop:Generator_ColumnPropNameInTable="NSI_METER_NAMEColumn" msprop:Generator_UserColumnName="NSI_METER_NAME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="USER_RIGHTS" msprop:Generator_TableClassName="USER_RIGHTSDataTable" msprop:Generator_TableVarName="tableUSER_RIGHTS" msprop:Generator_RowChangedName="USER_RIGHTSRowChanged" msprop:Generator_TablePropName="USER_RIGHTS" msprop:Generator_RowDeletingName="USER_RIGHTSRowDeleting" msprop:Generator_RowChangingName="USER_RIGHTSRowChanging" msprop:Generator_RowEvHandlerName="USER_RIGHTSRowChangeEventHandler" msprop:Generator_RowDeletedName="USER_RIGHTSRowDeleted" msprop:Generator_RowClassName="USER_RIGHTSRow" msprop:Generator_UserTableName="USER_RIGHTS" msprop:Generator_RowEvArgName="USER_RIGHTSRowChangeEvent">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="LOGIN" msprop:Generator_ColumnVarNameInTable="columnLOGIN" msprop:Generator_ColumnPropNameInRow="LOGIN" msprop:Generator_ColumnPropNameInTable="LOGINColumn" msprop:Generator_UserColumnName="LOGIN" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2147483647" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PAY_IN" msprop:Generator_ColumnVarNameInTable="columnPAY_IN" msprop:Generator_ColumnPropNameInRow="PAY_IN" msprop:Generator_ColumnPropNameInTable="PAY_INColumn" msprop:Generator_UserColumnName="PAY_IN" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="10" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PAY_OUT" msprop:Generator_ColumnVarNameInTable="columnPAY_OUT" msprop:Generator_ColumnPropNameInRow="PAY_OUT" msprop:Generator_ColumnPropNameInTable="PAY_OUTColumn" msprop:Generator_UserColumnName="PAY_OUT" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="10" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="INVOICE_IN" msprop:Generator_ColumnVarNameInTable="columnINVOICE_IN" msprop:Generator_ColumnPropNameInRow="INVOICE_IN" msprop:Generator_ColumnPropNameInTable="INVOICE_INColumn" msprop:Generator_UserColumnName="INVOICE_IN" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="10" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="INVOICE_OUT" msprop:Generator_ColumnVarNameInTable="columnINVOICE_OUT" msprop:Generator_ColumnPropNameInRow="INVOICE_OUT" msprop:Generator_ColumnPropNameInTable="INVOICE_OUTColumn" msprop:Generator_UserColumnName="INVOICE_OUT" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="10" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="CALENDAR_PLAN" msprop:Generator_ColumnVarNameInTable="columnCALENDAR_PLAN" msprop:Generator_ColumnPropNameInRow="CALENDAR_PLAN" msprop:Generator_ColumnPropNameInTable="CALENDAR_PLANColumn" msprop:Generator_UserColumnName="CALENDAR_PLAN" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="10" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="COST_PROTOCOL" msprop:Generator_ColumnVarNameInTable="columnCOST_PROTOCOL" msprop:Generator_ColumnPropNameInRow="COST_PROTOCOL" msprop:Generator_ColumnPropNameInTable="COST_PROTOCOLColumn" msprop:Generator_UserColumnName="COST_PROTOCOL" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="10" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="GUILD_BILL" msprop:Generator_ColumnVarNameInTable="columnGUILD_BILL" msprop:Generator_ColumnPropNameInRow="GUILD_BILL" msprop:Generator_ColumnPropNameInTable="GUILD_BILLColumn" msprop:Generator_UserColumnName="GUILD_BILL" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="10" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="VAT_INV" msprop:Generator_ColumnVarNameInTable="columnVAT_INV" msprop:Generator_ColumnPropNameInRow="VAT_INV" msprop:Generator_ColumnPropNameInTable="VAT_INVColumn" msprop:Generator_UserColumnName="VAT_INV" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="10" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="CONTRACT" msprop:Generator_ColumnVarNameInTable="columnCONTRACT" msprop:Generator_ColumnPropNameInRow="CONTRACT" msprop:Generator_ColumnPropNameInTable="CONTRACTColumn" msprop:Generator_UserColumnName="CONTRACT" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="10" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ORGANIZATION" msprop:Generator_ColumnVarNameInTable="columnORGANIZATION" msprop:Generator_ColumnPropNameInRow="ORGANIZATION" msprop:Generator_ColumnPropNameInTable="ORGANIZATIONColumn" msprop:Generator_UserColumnName="ORGANIZATION" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="10" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="NSI_PRODUCT_GROUP" msprop:Generator_TableClassName="NSI_PRODUCT_GROUPDataTable" msprop:Generator_TableVarName="tableNSI_PRODUCT_GROUP" msprop:Generator_RowChangedName="NSI_PRODUCT_GROUPRowChanged" msprop:Generator_TablePropName="NSI_PRODUCT_GROUP" msprop:Generator_RowDeletingName="NSI_PRODUCT_GROUPRowDeleting" msprop:Generator_RowChangingName="NSI_PRODUCT_GROUPRowChanging" msprop:Generator_RowEvHandlerName="NSI_PRODUCT_GROUPRowChangeEventHandler" msprop:Generator_RowDeletedName="NSI_PRODUCT_GROUPRowDeleted" msprop:Generator_RowClassName="NSI_PRODUCT_GROUPRow" msprop:Generator_UserTableName="NSI_PRODUCT_GROUP" msprop:Generator_RowEvArgName="NSI_PRODUCT_GROUPRowChangeEvent">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="NAME" msprop:Generator_ColumnVarNameInTable="columnNAME" msprop:Generator_ColumnPropNameInRow="NAME" msprop:Generator_ColumnPropNameInTable="NAMEColumn" msprop:Generator_UserColumnName="NAME">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="LAST_UPDATE" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE" msprop:Generator_ColumnPropNameInTable="LAST_UPDATEColumn" msprop:Generator_UserColumnName="LAST_UPDATE" type="xs:dateTime" minOccurs="0" />
              <xs:element name="LAST_UPDATE_USER" msprop:Generator_ColumnVarNameInTable="columnLAST_UPDATE_USER" msprop:Generator_ColumnPropNameInRow="LAST_UPDATE_USER" msprop:Generator_ColumnPropNameInTable="LAST_UPDATE_USERColumn" msprop:Generator_UserColumnName="LAST_UPDATE_USER" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:CALENDAR_PLAN" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="CONTRACT_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:CONTRACT" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="COST_PROTOCOL_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:COST_PROTOCOL" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="CP_STAGE_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:CP_STAGE" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="INVOICE_IN_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:INVOICE_IN" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="INVOICE_IN_ITEM_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:INVOICE_IN_ITEM" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="INVOICE_OUT_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:INVOICE_OUT" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="INVOICE_OUT_ITEM_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:INVOICE_OUT_ITEM" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="NSI_CURRENCY_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:NSI_CURRENCY" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="NSI_EXCHANGE_RATE_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:NSI_EXCHANGE_RATE" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="NSI_EXPENSE_ITEM_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:NSI_EXPENSE_ITEM" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="NSI_FINANCE_RESOURCE_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:NSI_FINANCE_RESOURCE" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="NSI_MATERIAL_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:NSI_MATERIAL" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="NSI_METER_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:NSI_METER" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="NSI_ORGANIZATION_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:NSI_ORGANIZATION" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="NSI_PAY_DIRECT_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:NSI_PAY_DIRECT" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="NSI_PRODUCT_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:NSI_PRODUCT" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="NSI_PRODUCT_STATE_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:NSI_PRODUCT_STATE" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="NSI_SERVICE_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:NSI_SERVICE" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="NSI_TYPE_OF_ACTIVITY_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:NSI_TYPE_OF_ACTIVITY" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="PAY_IN_ON_INV_OUT_Constraint1" msdata:ConstraintName="Constraint1">
      <xs:selector xpath=".//mstns:PAY_IN_ON_INV_OUT" />
      <xs:field xpath="mstns:PAYMENT_IN_ID" />
      <xs:field xpath="mstns:INVOICE_OUT_ID" />
    </xs:unique>
    <xs:unique name="Constraint2" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:PAY_IN_ON_INV_OUT" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="PAY_IN_ON_SERVICE_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:PAY_IN_ON_SERVICE" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="PAY_OUT_ON_INV_IN_Constraint2" msdata:ConstraintName="Constraint2">
      <xs:selector xpath=".//mstns:PAY_OUT_ON_INV_IN" />
      <xs:field xpath="mstns:PAYMENT_OUT_ID" />
      <xs:field xpath="mstns:INVOICE_IN_ID" />
    </xs:unique>
    <xs:unique name="PAY_OUT_ON_INV_IN_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:PAY_OUT_ON_INV_IN" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="PAYMENT_IN_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:PAYMENT_IN" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="PAYMENT_IN_ITEM_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:PAYMENT_IN_ITEM" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="PAYMENT_OUT_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:PAYMENT_OUT" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="PRODUCT_COST_Constraint1" msdata:ConstraintName="Constraint1">
      <xs:selector xpath=".//mstns:PRODUCT_COST" />
      <xs:field xpath="mstns:COST_PROTOCOL_ID" />
      <xs:field xpath="mstns:PRODUCT_UNIT_ID" />
    </xs:unique>
    <xs:unique name="PRODUCT_COST_Constraint2" msdata:ConstraintName="Constraint2" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:PRODUCT_COST" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="VAT_INV_ON_SERVICE_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:VAT_INV_ON_SERVICE" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="VAT_INVOICE_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:VAT_INVOICE" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="PRODUCT_UNIT_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:PRODUCT_UNIT" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="VIEW_SEARCH_INVOICE_IN_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:VIEW_SEARCH_INVOICE_IN" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="VIEW_SEARCH_CONTRACT_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:VIEW_SEARCH_CONTRACT" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="View_SEARCH_CALENDAR_PLAN_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:View_SEARCH_CALENDAR_PLAN" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="AGGR_PRODUCT_COST_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:AGGR_PRODUCT_COST" />
      <xs:field xpath="mstns:NAME" />
      <xs:field xpath="mstns:CP_STAGE_ID" />
    </xs:unique>
    <xs:unique name="VIEW_SEARCH_COST_PROTOCOL_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:VIEW_SEARCH_COST_PROTOCOL" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="VIEW_SEARCH_INVOICE_OUT_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:VIEW_SEARCH_INVOICE_OUT" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="VIEW_PAY_IN_ON_INV_OUT_Constraint1" msdata:ConstraintName="Constraint1">
      <xs:selector xpath=".//mstns:VIEW_PAY_IN_ON_INV_OUT" />
      <xs:field xpath="mstns:PAYMENT_IN_ID" />
      <xs:field xpath="mstns:INVOICE_OUT_ID" />
    </xs:unique>
    <xs:unique name="VIEW_PAY_IN_ON_INV_OUT_Constraint2" msdata:ConstraintName="Constraint2" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:VIEW_PAY_IN_ON_INV_OUT" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="GUILD_BILL_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:GUILD_BILL" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="DIRECT_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:DIRECT" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="VIEW_SEARCH_PAYMENT_IN_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:VIEW_SEARCH_PAYMENT_IN" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="VIEW_SEARCH_P_U_FOR_FORMS_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:VIEW_SEARCH_P_U_FOR_FORMS" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="VIEW_PAY_IN_ITEM_Constraint1" msdata:ConstraintName="Constraint1">
      <xs:selector xpath=".//mstns:VIEW_PAY_IN_ITEM" />
      <xs:field xpath="mstns:PRODUCT_UNIT_ID" />
      <xs:field xpath="mstns:PAYMENT_IN_ID" />
    </xs:unique>
    <xs:unique name="VIEW_PAY_IN_ITEM_Constraint2" msdata:ConstraintName="Constraint2" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:VIEW_PAY_IN_ITEM" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="VIEW_INV_OUT_ITEM_Constraint1" msdata:ConstraintName="Constraint1">
      <xs:selector xpath=".//mstns:VIEW_INV_OUT_ITEM" />
      <xs:field xpath="mstns:PRODUCT_UNIT_ID" />
      <xs:field xpath="mstns:INVOICE_OUT_ID" />
    </xs:unique>
    <xs:unique name="VIEW_INV_OUT_ITEM_Constraint2" msdata:ConstraintName="Constraint2" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:VIEW_INV_OUT_ITEM" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="VIEW_DIRECT_ITEM_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:VIEW_DIRECT_ITEM" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="VIEW_SEARCH_DIRECT_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:VIEW_SEARCH_DIRECT" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="VIEW_SEARCH_GUILD_BILL_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:VIEW_SEARCH_GUILD_BILL" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="VIEW_GUILD_BILL_ITEM_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:VIEW_GUILD_BILL_ITEM" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="VIEWS_SEARCH_VAT_INVOICE_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:VIEWS_SEARCH_VAT_INVOICE" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="VIEW_VAT_IVOICE_ITEM_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:VIEW_VAT_IVOICE_ITEM" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="VIEW_SEARCH_NSI_SERVICE_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:VIEW_SEARCH_NSI_SERVICE" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="INVOICE_OUT_SERVICE_ITEM_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:INVOICE_OUT_SERVICE_ITEM" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="VIEW_PAY_IN_ON_SERVICE_Constraint1" msdata:ConstraintName="Constraint1">
      <xs:selector xpath=".//mstns:VIEW_PAY_IN_ON_SERVICE" />
      <xs:field xpath="mstns:PAYMENT_IN_ID" />
      <xs:field xpath="mstns:NSI_SERVICE_ID" />
    </xs:unique>
    <xs:unique name="VIEW_PAY_IN_ON_SERVICE_Constraint2" msdata:ConstraintName="Constraint2" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:VIEW_PAY_IN_ON_SERVICE" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="VIEW_VAT_INV_ON_SERVICE_Constraint1" msdata:ConstraintName="Constraint1">
      <xs:selector xpath=".//mstns:VIEW_VAT_INV_ON_SERVICE" />
      <xs:field xpath="mstns:NSI_SERVICE_ID" />
      <xs:field xpath="mstns:VAT_INVOICE_ID" />
    </xs:unique>
    <xs:unique name="VIEW_VAT_INV_ON_SERVICE_Constraint2" msdata:ConstraintName="Constraint2" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:VIEW_VAT_INV_ON_SERVICE" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="VIEW_INV_OUT_SERVICE_ITEM_Constraint1" msdata:ConstraintName="Constraint1">
      <xs:selector xpath=".//mstns:VIEW_INV_OUT_SERVICE_ITEM" />
      <xs:field xpath="mstns:INVOICE_OUT_ID" />
      <xs:field xpath="mstns:NSI_SERVICE_ID" />
    </xs:unique>
    <xs:unique name="VIEW_INV_OUT_SERVICE_ITEM_Constraint2" msdata:ConstraintName="Constraint2" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:VIEW_INV_OUT_SERVICE_ITEM" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="NSI_PRODUCT_GROUP_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:NSI_PRODUCT_GROUP" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:keyref name="COST_PROTOCOL_PRODUCT_COST" refer="COST_PROTOCOL_Constraint1" msprop:rel_Generator_UserChildTable="PRODUCT_COST" msprop:rel_Generator_ChildPropName="GetPRODUCT_COSTRows" msprop:rel_Generator_UserRelationName="COST_PROTOCOL_PRODUCT_COST" msprop:rel_Generator_ParentPropName="COST_PROTOCOLRow" msprop:rel_Generator_RelationVarName="relationCOST_PROTOCOL_PRODUCT_COST" msprop:rel_Generator_UserParentTable="COST_PROTOCOL" msdata:DeleteRule="None">
      <xs:selector xpath=".//mstns:PRODUCT_COST" />
      <xs:field xpath="mstns:COST_PROTOCOL_ID" />
    </xs:keyref>
    <xs:keyref name="CP_STAGE_CP_STAGE" refer="CP_STAGE_Constraint1" msprop:rel_Generator_UserChildTable="CP_STAGE" msprop:rel_Generator_ChildPropName="GetCP_STAGERows" msprop:rel_Generator_UserRelationName="CP_STAGE_CP_STAGE" msprop:rel_Generator_RelationVarName="relationCP_STAGE_CP_STAGE" msprop:rel_Generator_UserParentTable="CP_STAGE" msprop:rel_Generator_ParentPropName="CP_STAGERowParent" msdata:DeleteRule="None">
      <xs:selector xpath=".//mstns:CP_STAGE" />
      <xs:field xpath="mstns:PARENT_STAGE_ID" />
    </xs:keyref>
  </xs:element>
  <xs:annotation>
    <xs:appinfo>
      <msdata:Relationship name="CONTRACT_CALENDAR_PLAN" msdata:parent="CONTRACT" msdata:child="CALENDAR_PLAN" msdata:parentkey="ID" msdata:childkey="CONTRACT_ID" msprop:Generator_UserChildTable="CALENDAR_PLAN" msprop:Generator_ChildPropName="GetCALENDAR_PLANRows" msprop:Generator_UserRelationName="CONTRACT_CALENDAR_PLAN" msprop:Generator_RelationVarName="relationCONTRACT_CALENDAR_PLAN" msprop:Generator_UserParentTable="CONTRACT" msprop:Generator_ParentPropName="CONTRACTRow" />
      <msdata:Relationship name="CALENDAR_PLAN_CP_STAGE" msdata:parent="CALENDAR_PLAN" msdata:child="CP_STAGE" msdata:parentkey="ID" msdata:childkey="CALENDAR_PLAN_ID" msprop:Generator_UserChildTable="CP_STAGE" msprop:Generator_ChildPropName="GetCP_STAGERows" msprop:Generator_UserRelationName="CALENDAR_PLAN_CP_STAGE" msprop:Generator_RelationVarName="relationCALENDAR_PLAN_CP_STAGE" msprop:Generator_UserParentTable="CALENDAR_PLAN" msprop:Generator_ParentPropName="CALENDAR_PLANRow" />
      <msdata:Relationship name="NSI_ORGANIZATION_CONTRACT" msdata:parent="NSI_ORGANIZATION" msdata:child="CONTRACT" msdata:parentkey="ID" msdata:childkey="NSI_ORGANIZATION_ID" msprop:Generator_UserChildTable="CONTRACT" msprop:Generator_ChildPropName="GetCONTRACTRows" msprop:Generator_UserRelationName="NSI_ORGANIZATION_CONTRACT" msprop:Generator_RelationVarName="relationNSI_ORGANIZATION_CONTRACT" msprop:Generator_UserParentTable="NSI_ORGANIZATION" msprop:Generator_ParentPropName="NSI_ORGANIZATIONRow" />
      <msdata:Relationship name="NSI_ORGANIZATION_PAYMENT_IN" msdata:parent="NSI_ORGANIZATION" msdata:child="PAYMENT_IN" msdata:parentkey="ID" msdata:childkey="NSI_ORGANIZATION_ID" msprop:Generator_UserChildTable="PAYMENT_IN" msprop:Generator_ChildPropName="GetPAYMENT_INRows" msprop:Generator_UserRelationName="NSI_ORGANIZATION_PAYMENT_IN" msprop:Generator_RelationVarName="relationNSI_ORGANIZATION_PAYMENT_IN" msprop:Generator_UserParentTable="NSI_ORGANIZATION" msprop:Generator_ParentPropName="NSI_ORGANIZATIONRow" />
      <msdata:Relationship name="NSI_METER_NSI_MATERIAL" msdata:parent="NSI_METER" msdata:child="NSI_MATERIAL" msdata:parentkey="ID" msdata:childkey="NSI_METER_ID" msprop:Generator_UserChildTable="NSI_MATERIAL" msprop:Generator_ChildPropName="GetNSI_MATERIALRows" msprop:Generator_UserRelationName="NSI_METER_NSI_MATERIAL" msprop:Generator_RelationVarName="relationNSI_METER_NSI_MATERIAL" msprop:Generator_UserParentTable="NSI_METER" msprop:Generator_ParentPropName="NSI_METERRow" />
      <msdata:Relationship name="NSI_METER_NSI_PRODUCT" msdata:parent="NSI_METER" msdata:child="NSI_PRODUCT" msdata:parentkey="ID" msdata:childkey="NSI_METER_ID" msprop:Generator_UserChildTable="NSI_PRODUCT" msprop:Generator_ChildPropName="GetNSI_PRODUCTRows" msprop:Generator_UserRelationName="NSI_METER_NSI_PRODUCT" msprop:Generator_RelationVarName="relationNSI_METER_NSI_PRODUCT" msprop:Generator_UserParentTable="NSI_METER" msprop:Generator_ParentPropName="NSI_METERRow" />
      <msdata:Relationship name="NSI_METER_NSI_SERVICE" msdata:parent="NSI_METER" msdata:child="NSI_SERVICE" msdata:parentkey="ID" msdata:childkey="NSI_METER_ID" msprop:Generator_UserChildTable="NSI_SERVICE" msprop:Generator_ChildPropName="GetNSI_SERVICERows" msprop:Generator_UserRelationName="NSI_METER_NSI_SERVICE" msprop:Generator_RelationVarName="relationNSI_METER_NSI_SERVICE" msprop:Generator_UserParentTable="NSI_METER" msprop:Generator_ParentPropName="NSI_METERRow" />
      <msdata:Relationship name="CP_STAGE_PRODUCT_UNIT" msdata:parent="CP_STAGE" msdata:child="PRODUCT_UNIT" msdata:parentkey="ID" msdata:childkey="CP_STAGE_ID" msprop:Generator_UserChildTable="PRODUCT_UNIT" msprop:Generator_ChildPropName="GetPRODUCT_UNITRows" msprop:Generator_UserRelationName="CP_STAGE_PRODUCT_UNIT" msprop:Generator_RelationVarName="relationCP_STAGE_PRODUCT_UNIT" msprop:Generator_UserParentTable="CP_STAGE" msprop:Generator_ParentPropName="CP_STAGERow" />
      <msdata:Relationship name="CONTRACT_CONTRACT" msdata:parent="CONTRACT" msdata:child="CONTRACT" msdata:parentkey="ID" msdata:childkey="PARENT_CONTRACT_ID" msprop:Generator_UserChildTable="CONTRACT" msprop:Generator_ChildPropName="GetCONTRACTRows" msprop:Generator_UserRelationName="CONTRACT_CONTRACT" msprop:Generator_RelationVarName="relationCONTRACT_CONTRACT" msprop:Generator_UserParentTable="CONTRACT" msprop:Generator_ParentPropName="CONTRACTRowParent" />
      <msdata:Relationship name="CONTRACT_INVOICE_IN" msdata:parent="CONTRACT" msdata:child="INVOICE_IN" msdata:parentkey="ID" msdata:childkey="NSI_CONTRACT_ID" msprop:Generator_UserChildTable="INVOICE_IN" msprop:Generator_ChildPropName="GetINVOICE_INRows" msprop:Generator_UserRelationName="CONTRACT_INVOICE_IN" msprop:Generator_RelationVarName="relationCONTRACT_INVOICE_IN" msprop:Generator_UserParentTable="CONTRACT" msprop:Generator_ParentPropName="CONTRACTRow" />
      <msdata:Relationship name="CONTRACT_COST_PROTOCOL" msdata:parent="CONTRACT" msdata:child="COST_PROTOCOL" msdata:parentkey="ID" msdata:childkey="CONTRACT_ID" msprop:Generator_UserChildTable="COST_PROTOCOL" msprop:Generator_ChildPropName="GetCOST_PROTOCOLRows" msprop:Generator_UserRelationName="CONTRACT_COST_PROTOCOL" msprop:Generator_RelationVarName="relationCONTRACT_COST_PROTOCOL" msprop:Generator_UserParentTable="CONTRACT" msprop:Generator_ParentPropName="CONTRACTRow" />
      <msdata:Relationship name="PAYMENT_IN_PAY_IN_ON_SERVICE" msdata:parent="PAYMENT_IN" msdata:child="PAY_IN_ON_SERVICE" msdata:parentkey="ID" msdata:childkey="PAYMENT_IN_ID" msprop:Generator_UserChildTable="PAY_IN_ON_SERVICE" msprop:Generator_ChildPropName="GetPAY_IN_ON_SERVICERows" msprop:Generator_UserRelationName="PAYMENT_IN_PAY_IN_ON_SERVICE" msprop:Generator_RelationVarName="relationPAYMENT_IN_PAY_IN_ON_SERVICE" msprop:Generator_UserParentTable="PAYMENT_IN" msprop:Generator_ParentPropName="PAYMENT_INRow" />
      <msdata:Relationship name="PAYMENT_IN_PAYMENT_IN_ITEM" msdata:parent="PAYMENT_IN" msdata:child="PAYMENT_IN_ITEM" msdata:parentkey="ID" msdata:childkey="PAYMENT_IN_ID" msprop:Generator_UserChildTable="PAYMENT_IN_ITEM" msprop:Generator_ChildPropName="GetPAYMENT_IN_ITEMRows" msprop:Generator_UserRelationName="PAYMENT_IN_PAYMENT_IN_ITEM" msprop:Generator_RelationVarName="relationPAYMENT_IN_PAYMENT_IN_ITEM" msprop:Generator_UserParentTable="PAYMENT_IN" msprop:Generator_ParentPropName="PAYMENT_INRow" />
      <msdata:Relationship name="INVOICE_OUT_PAY_IN_ON_INV_OUT" msdata:parent="INVOICE_OUT" msdata:child="PAY_IN_ON_INV_OUT" msdata:parentkey="ID" msdata:childkey="INVOICE_OUT_ID" msprop:Generator_UserChildTable="PAY_IN_ON_INV_OUT" msprop:Generator_ChildPropName="GetPAY_IN_ON_INV_OUTRows" msprop:Generator_UserRelationName="INVOICE_OUT_PAY_IN_ON_INV_OUT" msprop:Generator_RelationVarName="relationINVOICE_OUT_PAY_IN_ON_INV_OUT" msprop:Generator_UserParentTable="INVOICE_OUT" msprop:Generator_ParentPropName="INVOICE_OUTRow" />
      <msdata:Relationship name="INVOICE_OUT_INVOICE_OUT_ITEM" msdata:parent="INVOICE_OUT" msdata:child="INVOICE_OUT_ITEM" msdata:parentkey="ID" msdata:childkey="INVOICE_OUT_ID" msprop:Generator_UserChildTable="INVOICE_OUT_ITEM" msprop:Generator_ChildPropName="GetINVOICE_OUT_ITEMRows" msprop:Generator_UserRelationName="INVOICE_OUT_INVOICE_OUT_ITEM" msprop:Generator_RelationVarName="relationINVOICE_OUT_INVOICE_OUT_ITEM" msprop:Generator_UserParentTable="INVOICE_OUT" msprop:Generator_ParentPropName="INVOICE_OUTRow" />
      <msdata:Relationship name="NSI_CURRENCY_COST_PROTOCOL" msdata:parent="NSI_CURRENCY" msdata:child="COST_PROTOCOL" msdata:parentkey="ID" msdata:childkey="NSI_CURRENCY_ID" msprop:Generator_UserChildTable="COST_PROTOCOL" msprop:Generator_ChildPropName="GetCOST_PROTOCOLRows" msprop:Generator_UserRelationName="NSI_CURRENCY_COST_PROTOCOL" msprop:Generator_RelationVarName="relationNSI_CURRENCY_COST_PROTOCOL" msprop:Generator_UserParentTable="NSI_CURRENCY" msprop:Generator_ParentPropName="NSI_CURRENCYRow" />
      <msdata:Relationship name="NSI_PRODUCT_PRODUCT_UNIT" msdata:parent="NSI_PRODUCT" msdata:child="PRODUCT_UNIT" msdata:parentkey="ID" msdata:childkey="NSI_PRODUCT_ID" msprop:Generator_UserChildTable="PRODUCT_UNIT" msprop:Generator_ChildPropName="GetPRODUCT_UNITRows" msprop:Generator_UserRelationName="NSI_PRODUCT_PRODUCT_UNIT" msprop:Generator_RelationVarName="relationNSI_PRODUCT_PRODUCT_UNIT" msprop:Generator_UserParentTable="NSI_PRODUCT" msprop:Generator_ParentPropName="NSI_PRODUCTRow" />
      <msdata:Relationship name="NSI_SERVICE_VAT_INV_ON_SERVICE" msdata:parent="NSI_SERVICE" msdata:child="VAT_INV_ON_SERVICE" msdata:parentkey="ID" msdata:childkey="NSI_SERVICE_ID" msprop:Generator_UserChildTable="VAT_INV_ON_SERVICE" msprop:Generator_ChildPropName="GetVAT_INV_ON_SERVICERows" msprop:Generator_UserRelationName="NSI_SERVICE_VAT_INV_ON_SERVICE" msprop:Generator_RelationVarName="relationNSI_SERVICE_VAT_INV_ON_SERVICE" msprop:Generator_UserParentTable="NSI_SERVICE" msprop:Generator_ParentPropName="NSI_SERVICERow" />
      <msdata:Relationship name="NSI_SERVICE_PAY_IN_ON_SERVICE" msdata:parent="NSI_SERVICE" msdata:child="PAY_IN_ON_SERVICE" msdata:parentkey="ID" msdata:childkey="NSI_SERVICE_ID" msprop:Generator_UserChildTable="PAY_IN_ON_SERVICE" msprop:Generator_ChildPropName="GetPAY_IN_ON_SERVICERows" msprop:Generator_UserRelationName="NSI_SERVICE_PAY_IN_ON_SERVICE" msprop:Generator_RelationVarName="relationNSI_SERVICE_PAY_IN_ON_SERVICE" msprop:Generator_UserParentTable="NSI_SERVICE" msprop:Generator_ParentPropName="NSI_SERVICERow" />
      <msdata:Relationship name="VAT_INVOICE_VAT_INV_ON_SERVICE" msdata:parent="VAT_INVOICE" msdata:child="VAT_INV_ON_SERVICE" msdata:parentkey="ID" msdata:childkey="VAT_INVOICE_ID" msprop:Generator_UserChildTable="VAT_INV_ON_SERVICE" msprop:Generator_ChildPropName="GetVAT_INV_ON_SERVICERows" msprop:Generator_UserRelationName="VAT_INVOICE_VAT_INV_ON_SERVICE" msprop:Generator_RelationVarName="relationVAT_INVOICE_VAT_INV_ON_SERVICE" msprop:Generator_UserParentTable="VAT_INVOICE" msprop:Generator_ParentPropName="VAT_INVOICERow" />
      <msdata:Relationship name="VAT_INVOICE_PRODUCT_UNIT" msdata:parent="VAT_INVOICE" msdata:child="PRODUCT_UNIT" msdata:parentkey="ID" msdata:childkey="VAT_INVOICE_ID" msprop:Generator_UserChildTable="PRODUCT_UNIT" msprop:Generator_ChildPropName="GetPRODUCT_UNITRows" msprop:Generator_UserRelationName="VAT_INVOICE_PRODUCT_UNIT" msprop:Generator_RelationVarName="relationVAT_INVOICE_PRODUCT_UNIT" msprop:Generator_UserParentTable="VAT_INVOICE" msprop:Generator_ParentPropName="VAT_INVOICERow" />
      <msdata:Relationship name="NSI_TYPE_OF_ACTIVITY_CONTRACT" msdata:parent="NSI_TYPE_OF_ACTIVITY" msdata:child="CONTRACT" msdata:parentkey="ID" msdata:childkey="NSI_TYPE_OF_ACTIVITY_ID" msprop:Generator_UserChildTable="CONTRACT" msprop:Generator_ChildPropName="GetCONTRACTRows" msprop:Generator_UserRelationName="NSI_TYPE_OF_ACTIVITY_CONTRACT" msprop:Generator_RelationVarName="relationNSI_TYPE_OF_ACTIVITY_CONTRACT" msprop:Generator_UserParentTable="NSI_TYPE_OF_ACTIVITY" msprop:Generator_ParentPropName="NSI_TYPE_OF_ACTIVITYRow" />
      <msdata:Relationship name="NSI_TYPE_OF_ACTIVITY_INVOICE_IN" msdata:parent="NSI_TYPE_OF_ACTIVITY" msdata:child="INVOICE_IN" msdata:parentkey="ID" msdata:childkey="NSI_TYPE_OF_ACTIVITY_ID" msprop:Generator_UserChildTable="INVOICE_IN" msprop:Generator_ChildPropName="GetINVOICE_INRows" msprop:Generator_UserRelationName="NSI_TYPE_OF_ACTIVITY_INVOICE_IN" msprop:Generator_RelationVarName="relationNSI_TYPE_OF_ACTIVITY_INVOICE_IN" msprop:Generator_UserParentTable="NSI_TYPE_OF_ACTIVITY" msprop:Generator_ParentPropName="NSI_TYPE_OF_ACTIVITYRow" />
      <msdata:Relationship name="PRODUCT_UNIT_PAYMENT_IN_ITEM" msdata:parent="PRODUCT_UNIT" msdata:child="PAYMENT_IN_ITEM" msdata:parentkey="ID" msdata:childkey="PRODUCT_UNIT_ID" msprop:Generator_UserChildTable="PAYMENT_IN_ITEM" msprop:Generator_ChildPropName="GetPAYMENT_IN_ITEMRows" msprop:Generator_UserRelationName="PRODUCT_UNIT_PAYMENT_IN_ITEM" msprop:Generator_RelationVarName="relationPRODUCT_UNIT_PAYMENT_IN_ITEM" msprop:Generator_UserParentTable="PRODUCT_UNIT" msprop:Generator_ParentPropName="PRODUCT_UNITRow" />
      <msdata:Relationship name="PRODUCT_UNIT_INVOICE_OUT_ITEM" msdata:parent="PRODUCT_UNIT" msdata:child="INVOICE_OUT_ITEM" msdata:parentkey="ID" msdata:childkey="PRODUCT_UNIT_ID" msprop:Generator_UserChildTable="INVOICE_OUT_ITEM" msprop:Generator_ChildPropName="GetINVOICE_OUT_ITEMRows" msprop:Generator_UserRelationName="PRODUCT_UNIT_INVOICE_OUT_ITEM" msprop:Generator_RelationVarName="relationPRODUCT_UNIT_INVOICE_OUT_ITEM" msprop:Generator_UserParentTable="PRODUCT_UNIT" msprop:Generator_ParentPropName="PRODUCT_UNITRow" />
      <msdata:Relationship name="PAYMENT_OUT_PAY_OUT_ON_INV_IN" msdata:parent="PAYMENT_OUT" msdata:child="PAY_OUT_ON_INV_IN" msdata:parentkey="ID" msdata:childkey="PAYMENT_OUT_ID" msprop:Generator_UserChildTable="PAY_OUT_ON_INV_IN" msprop:Generator_ChildPropName="GetPAY_OUT_ON_INV_INRows" msprop:Generator_UserRelationName="PAYMENT_OUT_PAY_OUT_ON_INV_IN" msprop:Generator_RelationVarName="relationPAYMENT_OUT_PAY_OUT_ON_INV_IN" msprop:Generator_UserParentTable="PAYMENT_OUT" msprop:Generator_ParentPropName="PAYMENT_OUTRow" />
      <msdata:Relationship name="NSI_PAY_DIRECT_INVOICE_IN" msdata:parent="NSI_PAY_DIRECT" msdata:child="INVOICE_IN" msdata:parentkey="ID" msdata:childkey="NSI_PAY_DIRECT_ID" msprop:Generator_UserChildTable="INVOICE_IN" msprop:Generator_ChildPropName="GetINVOICE_INRows" msprop:Generator_UserRelationName="NSI_PAY_DIRECT_INVOICE_IN" msprop:Generator_RelationVarName="relationNSI_PAY_DIRECT_INVOICE_IN" msprop:Generator_UserParentTable="NSI_PAY_DIRECT" msprop:Generator_ParentPropName="NSI_PAY_DIRECTRow" />
      <msdata:Relationship name="NSI_EXPENSE_ITEM_INVOICE_IN" msdata:parent="NSI_EXPENSE_ITEM" msdata:child="INVOICE_IN" msdata:parentkey="ID" msdata:childkey="NSI_EXPENSE_ITEM_ID" msprop:Generator_UserChildTable="INVOICE_IN" msprop:Generator_ChildPropName="GetINVOICE_INRows" msprop:Generator_UserRelationName="NSI_EXPENSE_ITEM_INVOICE_IN" msprop:Generator_RelationVarName="relationNSI_EXPENSE_ITEM_INVOICE_IN" msprop:Generator_UserParentTable="NSI_EXPENSE_ITEM" msprop:Generator_ParentPropName="NSI_EXPENSE_ITEMRow" />
      <msdata:Relationship name="NSI_FINANCE_RESOURCE_INVOICE_IN" msdata:parent="NSI_FINANCE_RESOURCE" msdata:child="INVOICE_IN" msdata:parentkey="ID" msdata:childkey="NSI_FINANCE_RESOURCE_ID" msprop:Generator_UserChildTable="INVOICE_IN" msprop:Generator_ChildPropName="GetINVOICE_INRows" msprop:Generator_UserRelationName="NSI_FINANCE_RESOURCE_INVOICE_IN" msprop:Generator_RelationVarName="relationNSI_FINANCE_RESOURCE_INVOICE_IN" msprop:Generator_UserParentTable="NSI_FINANCE_RESOURCE" msprop:Generator_ParentPropName="NSI_FINANCE_RESOURCERow" />
      <msdata:Relationship name="INVOICE_IN_INVOICE_IN_ITEM" msdata:parent="INVOICE_IN" msdata:child="INVOICE_IN_ITEM" msdata:parentkey="ID" msdata:childkey="INVOICE_IN_ID" msprop:Generator_UserChildTable="INVOICE_IN_ITEM" msprop:Generator_ChildPropName="GetINVOICE_IN_ITEMRows" msprop:Generator_UserRelationName="INVOICE_IN_INVOICE_IN_ITEM" msprop:Generator_RelationVarName="relationINVOICE_IN_INVOICE_IN_ITEM" msprop:Generator_UserParentTable="INVOICE_IN" msprop:Generator_ParentPropName="INVOICE_INRow" />
      <msdata:Relationship name="NSI_MATERIAL_INVOICE_IN_ITEM" msdata:parent="NSI_MATERIAL" msdata:child="INVOICE_IN_ITEM" msdata:parentkey="ID" msdata:childkey="NSI_MATERIAL_ID" msprop:Generator_UserChildTable="INVOICE_IN_ITEM" msprop:Generator_ChildPropName="GetINVOICE_IN_ITEMRows" msprop:Generator_UserRelationName="NSI_MATERIAL_INVOICE_IN_ITEM" msprop:Generator_RelationVarName="relationNSI_MATERIAL_INVOICE_IN_ITEM" msprop:Generator_UserParentTable="NSI_MATERIAL" msprop:Generator_ParentPropName="NSI_MATERIALRow" />
      <msdata:Relationship name="NSI_CURRENCY_NSI_EXCHANGE_RATE" msdata:parent="NSI_CURRENCY" msdata:child="NSI_EXCHANGE_RATE" msdata:parentkey="ID" msdata:childkey="NSI_CURRENCY_ID" msprop:Generator_UserChildTable="NSI_EXCHANGE_RATE" msprop:Generator_ChildPropName="GetNSI_EXCHANGE_RATERows" msprop:Generator_UserRelationName="NSI_CURRENCY_NSI_EXCHANGE_RATE" msprop:Generator_RelationVarName="relationNSI_CURRENCY_NSI_EXCHANGE_RATE" msprop:Generator_UserParentTable="NSI_CURRENCY" msprop:Generator_ParentPropName="NSI_CURRENCYRow" />
      <msdata:Relationship name="PAYMENT_IN_PAY_IN_ON_INV_OUT" msdata:parent="PAYMENT_IN" msdata:child="PAY_IN_ON_INV_OUT" msdata:parentkey="ID" msdata:childkey="PAYMENT_IN_ID" msprop:Generator_UserChildTable="PAY_IN_ON_INV_OUT" msprop:Generator_ChildPropName="GetPAY_IN_ON_INV_OUTRows" msprop:Generator_UserRelationName="PAYMENT_IN_PAY_IN_ON_INV_OUT" msprop:Generator_RelationVarName="relationPAYMENT_IN_PAY_IN_ON_INV_OUT" msprop:Generator_UserParentTable="PAYMENT_IN" msprop:Generator_ParentPropName="PAYMENT_INRow" />
      <msdata:Relationship name="NSI_ORGANIZATION_INVOICE_IN" msdata:parent="NSI_ORGANIZATION" msdata:child="INVOICE_IN" msdata:parentkey="ID" msdata:childkey="NSI_ORGANIZATION_ID" msprop:Generator_UserChildTable="INVOICE_IN" msprop:Generator_ChildPropName="GetINVOICE_INRows" msprop:Generator_UserRelationName="NSI_ORGANIZATION_INVOICE_IN" msprop:Generator_RelationVarName="relationNSI_ORGANIZATION_INVOICE_IN" msprop:Generator_UserParentTable="NSI_ORGANIZATION" msprop:Generator_ParentPropName="NSI_ORGANIZATIONRow" />
      <msdata:Relationship name="INVOICE_IN_PAY_OUT_ON_INV_IN" msdata:parent="INVOICE_IN" msdata:child="PAY_OUT_ON_INV_IN" msdata:parentkey="ID" msdata:childkey="INVOICE_IN_ID" msprop:Generator_UserChildTable="PAY_OUT_ON_INV_IN" msprop:Generator_ChildPropName="GetPAY_OUT_ON_INV_INRows" msprop:Generator_UserRelationName="INVOICE_IN_PAY_OUT_ON_INV_IN" msprop:Generator_RelationVarName="relationINVOICE_IN_PAY_OUT_ON_INV_IN" msprop:Generator_UserParentTable="INVOICE_IN" msprop:Generator_ParentPropName="INVOICE_INRow" />
      <msdata:Relationship name="PRODUCT_UNIT_PRODUCT_COST" msdata:parent="PRODUCT_UNIT" msdata:child="PRODUCT_COST" msdata:parentkey="ID" msdata:childkey="PRODUCT_UNIT_ID" msprop:Generator_UserChildTable="PRODUCT_COST" msprop:Generator_ChildPropName="GetPRODUCT_COSTRows" msprop:Generator_UserRelationName="PRODUCT_UNIT_PRODUCT_COST" msprop:Generator_RelationVarName="relationPRODUCT_UNIT_PRODUCT_COST" msprop:Generator_UserParentTable="PRODUCT_UNIT" msprop:Generator_ParentPropName="PRODUCT_UNITRow" />
      <msdata:Relationship name="FK_PRODUCT_UNIT_NSI_PRODUCT_STATE" msdata:parent="NSI_PRODUCT_STATE" msdata:child="PRODUCT_UNIT" msdata:parentkey="ID" msdata:childkey="NSI_PRODUCT_STATE_ID" msprop:Generator_UserChildTable="PRODUCT_UNIT" msprop:Generator_ChildPropName="GetPRODUCT_UNITRows" msprop:Generator_UserRelationName="FK_PRODUCT_UNIT_NSI_PRODUCT_STATE" msprop:Generator_RelationVarName="relationFK_PRODUCT_UNIT_NSI_PRODUCT_STATE" msprop:Generator_UserParentTable="NSI_PRODUCT_STATE" msprop:Generator_ParentPropName="NSI_PRODUCT_STATERow" />
      <msdata:Relationship name="FK_PRODUCT_UNIT_DIRECT" msdata:parent="DIRECT" msdata:child="PRODUCT_UNIT" msdata:parentkey="ID" msdata:childkey="DIRECT_NUMBER" msprop:Generator_UserChildTable="PRODUCT_UNIT" msprop:Generator_ChildPropName="GetPRODUCT_UNITRows" msprop:Generator_UserRelationName="FK_PRODUCT_UNIT_DIRECT" msprop:Generator_ParentPropName="DIRECTRow" msprop:Generator_RelationVarName="relationFK_PRODUCT_UNIT_DIRECT" msprop:Generator_UserParentTable="DIRECT" />
      <msdata:Relationship name="FK_PRODUCT_UNIT_GUILD_BILL" msdata:parent="GUILD_BILL" msdata:child="PRODUCT_UNIT" msdata:parentkey="ID" msdata:childkey="GUILD_BILL_NUMBER" msprop:Generator_UserChildTable="PRODUCT_UNIT" msprop:Generator_ChildPropName="GetPRODUCT_UNITRows" msprop:Generator_UserRelationName="FK_PRODUCT_UNIT_GUILD_BILL" msprop:Generator_ParentPropName="GUILD_BILLRow" msprop:Generator_RelationVarName="relationFK_PRODUCT_UNIT_GUILD_BILL" msprop:Generator_UserParentTable="GUILD_BILL" />
      <msdata:Relationship name="FK_VAT_INVOICE_NSI_ORGANIZATION" msdata:parent="NSI_ORGANIZATION" msdata:child="VAT_INVOICE" msdata:parentkey="ID" msdata:childkey="NSI_ORGANIZATION_ID" msprop:Generator_UserChildTable="VAT_INVOICE" msprop:Generator_ChildPropName="GetVAT_INVOICERows" msprop:Generator_UserRelationName="FK_VAT_INVOICE_NSI_ORGANIZATION" msprop:Generator_ParentPropName="NSI_ORGANIZATIONRow" msprop:Generator_RelationVarName="relationFK_VAT_INVOICE_NSI_ORGANIZATION" msprop:Generator_UserParentTable="NSI_ORGANIZATION" />
      <msdata:Relationship name="FK_INVOICE_OUT_SERVICE_ITEM_INVOICE_OUT" msdata:parent="INVOICE_OUT" msdata:child="INVOICE_OUT_SERVICE_ITEM" msdata:parentkey="ID" msdata:childkey="INVOICE_OUT_ID" msprop:Generator_UserChildTable="INVOICE_OUT_SERVICE_ITEM" msprop:Generator_ChildPropName="GetINVOICE_OUT_SERVICE_ITEMRows" msprop:Generator_UserRelationName="FK_INVOICE_OUT_SERVICE_ITEM_INVOICE_OUT" msprop:Generator_RelationVarName="relationFK_INVOICE_OUT_SERVICE_ITEM_INVOICE_OUT" msprop:Generator_UserParentTable="INVOICE_OUT" msprop:Generator_ParentPropName="INVOICE_OUTRow" />
      <msdata:Relationship name="FK_INVOICE_OUT_SERVICE_ITEM_NSI_SERVICE" msdata:parent="NSI_SERVICE" msdata:child="INVOICE_OUT_SERVICE_ITEM" msdata:parentkey="ID" msdata:childkey="NSI_SERVICE_ID" msprop:Generator_UserChildTable="INVOICE_OUT_SERVICE_ITEM" msprop:Generator_ChildPropName="GetINVOICE_OUT_SERVICE_ITEMRows" msprop:Generator_UserRelationName="FK_INVOICE_OUT_SERVICE_ITEM_NSI_SERVICE" msprop:Generator_RelationVarName="relationFK_INVOICE_OUT_SERVICE_ITEM_NSI_SERVICE" msprop:Generator_UserParentTable="NSI_SERVICE" msprop:Generator_ParentPropName="NSI_SERVICERow" />
      <msdata:Relationship name="FK_INVOICE_OUT_NSI_ORGANIZATION" msdata:parent="NSI_ORGANIZATION" msdata:child="INVOICE_OUT" msdata:parentkey="ID" msdata:childkey="NSI_ORGANIZATION_ID" msprop:Generator_UserChildTable="INVOICE_OUT" msprop:Generator_ChildPropName="GetINVOICE_OUTRows" msprop:Generator_UserRelationName="FK_INVOICE_OUT_NSI_ORGANIZATION" msprop:Generator_RelationVarName="relationFK_INVOICE_OUT_NSI_ORGANIZATION" msprop:Generator_UserParentTable="NSI_ORGANIZATION" msprop:Generator_ParentPropName="NSI_ORGANIZATIONRow" />
    </xs:appinfo>
  </xs:annotation>
</xs:schema>